summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-16 07:02:49 +0900
committerShinwoo Kim <cinoo.kim@samsung.com>2019-10-16 07:02:49 +0900
commit244f41402f9541099089d1118502255d5ade8466 (patch)
tree69b701e62e6c86d61722f1386765fed64aca2606
parent225d59eed01c756674b249fe4ea632f1eef62d11 (diff)
examples/eldbus: fix pointer leak on failure case
Summary: CID 1400787 Reviewers: kimcinoo Reviewed By: kimcinoo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10407
-rw-r--r--src/examples/eldbus/complex-types-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/eldbus/complex-types-server.c b/src/examples/eldbus/complex-types-server.c
index 30321e8..6d9c8f3 100644
--- a/src/examples/eldbus/complex-types-server.c
+++ b/src/examples/eldbus/complex-types-server.c
@@ -196,13 +196,14 @@ _double_container(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbu
196{ 196{
197 Eldbus_Message_Iter *array1, *array2, *structure; 197 Eldbus_Message_Iter *array1, *array2, *structure;
198 int num1, num2; 198 int num1, num2;
199 Eldbus_Message *reply = eldbus_message_method_return_new(msg); 199 Eldbus_Message *reply;
200 200
201 if (!eldbus_message_arguments_get(msg, "a(ii)a(ii)", &array1, &array2)) 201 if (!eldbus_message_arguments_get(msg, "a(ii)a(ii)", &array1, &array2))
202 { 202 {
203 printf("Error on eldbus_message_arguments_get()\n"); 203 printf("Error on eldbus_message_arguments_get()\n");
204 return NULL; 204 return NULL;
205 } 205 }
206 reply = eldbus_message_method_return_new(msg);
206 207
207 printf("DoubleCountainer\n{\nArray1:\n"); 208 printf("DoubleCountainer\n{\nArray1:\n");
208 while (eldbus_message_iter_get_and_next(array1, 'r', &structure)) 209 while (eldbus_message_iter_get_and_next(array1, 'r', &structure))