summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Lepsch <lepsch@expertisesolutions.com.br>2015-02-05 11:28:36 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-05 11:28:37 +0100
commitcd0cca6f80f9a12904a8f176122fc3298c33b8df (patch)
tree79316c75b4f56c3757bc5fa3379d63569389d3ec
parenta2d40968dfc9287ba39f0f02fb9bee97ec3b7370 (diff)
eldbus: fix memory leak.
Summary: @fix Reviewers: felipealmeida, larryolj, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1920 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/eldbus/eldbus_message_to_eina_value.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eldbus/eldbus_message_to_eina_value.c b/src/lib/eldbus/eldbus_message_to_eina_value.c
index 65b5ac7022..777bf17f56 100644
--- a/src/lib/eldbus/eldbus_message_to_eina_value.c
+++ b/src/lib/eldbus/eldbus_message_to_eina_value.c
@@ -119,6 +119,7 @@ _message_iter_array_to_eina_value(Eldbus_Message_Iter *iter)
119 Eina_Value_Struct st; 119 Eina_Value_Struct st;
120 eina_value_get(data, &st); 120 eina_value_get(data, &st);
121 eina_value_array_append(array_value, st); 121 eina_value_array_append(array_value, st);
122 eina_value_free(data);
122 } 123 }
123 } 124 }
124 else if (sig[0] == 'a') 125 else if (sig[0] == 'a')
@@ -130,6 +131,7 @@ _message_iter_array_to_eina_value(Eldbus_Message_Iter *iter)
130 Eina_Value_Array inner_array; 131 Eina_Value_Array inner_array;
131 eina_value_get(data, &inner_array); 132 eina_value_get(data, &inner_array);
132 eina_value_array_append(array_value, inner_array); 133 eina_value_array_append(array_value, inner_array);
134 eina_value_free(data);
133 } 135 }
134 } 136 }
135 else 137 else