summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-19 11:04:07 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-19 11:04:07 +0100
commit86d2983bf3034cd2c669f6f2efb8fb06a58bc0dd (patch)
treefca28a17c3b5a862057b8d1546db7a878e77db89 /src/lib
parent8bff25fadc5726b7fbf0f98c6a7f2aa541a80cc5 (diff)
Fix leak + possible segfault in edje_edit.
vaiable 'c' is allocated inside a loop, but only freed outside that loop...
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edje/edje_edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index ea74262ed5..07a684ada7 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -1039,10 +1039,10 @@ edje_edit_group_copy(Evas_Object *obj, const char *group_name, const char *copy_
1039 c = eina_str_split(keys[count], "/", 6); 1039 c = eina_str_split(keys[count], "/", 6);
1040 snprintf(buf, sizeof(buf), "edje/scripts/embryo/source/%d/%s", epc->id, c[5]); 1040 snprintf(buf, sizeof(buf), "edje/scripts/embryo/source/%d/%s", epc->id, c[5]);
1041 eet_write(eetf, buf, data, script_count, 0); 1041 eet_write(eetf, buf, data, script_count, 0);
1042 free(c[0]);
1043 free(c);
1042 } 1044 }
1043 free(keys); 1045 free(keys);
1044 free(c[0]);
1045 free(c);
1046 } 1046 }
1047 1047
1048 eet_close(eetf); 1048 eet_close(eetf);