summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-05-20 11:12:33 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-05-20 11:12:53 +0100
commit88698189ff7c587fb6a72de6745ebd485f2fada6 (patch)
treeab972da4dddff67b8448d976fda6d774e279ebce
parentd66517debf864fc7023c744091205334cb72356b (diff)
fix eldbus generator memleak when failing to fetch args
-rw-r--r--src/bin/eldbus/source_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/eldbus/source_client.c b/src/bin/eldbus/source_client.c
index 3d0bf437f4..45c95e517d 100644
--- a/src/bin/eldbus/source_client.c
+++ b/src/bin/eldbus/source_client.c
@@ -363,6 +363,7 @@ jump_simple_stuff:
363 eina_strbuf_append_printf(c_code, " if (!eldbus_message_arguments_get(msg, \"%s\"%s))\n", eina_strbuf_string_get(full_signature), eina_strbuf_string_get(parameters)); 363 eina_strbuf_append_printf(c_code, " if (!eldbus_message_arguments_get(msg, \"%s\"%s))\n", eina_strbuf_string_get(full_signature), eina_strbuf_string_get(parameters));
364 eina_strbuf_append_printf(c_code, " {\n"); 364 eina_strbuf_append_printf(c_code, " {\n");
365 eina_strbuf_append_printf(c_code, " ERR(\"Error: Getting arguments from message.\");\n"); 365 eina_strbuf_append_printf(c_code, " ERR(\"Error: Getting arguments from message.\");\n");
366 eina_strbuf_append_printf(c_code, " free(s_data);\n");
366 eina_strbuf_append_printf(c_code, " return;\n"); 367 eina_strbuf_append_printf(c_code, " return;\n");
367 eina_strbuf_append_printf(c_code, " }\n"); 368 eina_strbuf_append_printf(c_code, " }\n");
368 eina_strbuf_append(c_code, eina_strbuf_string_get(string_copy)); 369 eina_strbuf_append(c_code, eina_strbuf_string_get(string_copy));