Fix leak + possible segfault in edje_edit.

vaiable 'c' is allocated inside a loop, but only freed outside that loop...
This commit is contained in:
Guillaume Friloux 2013-12-19 11:04:07 +01:00
parent 8bff25fadc
commit 86d2983bf3
1 changed files with 2 additions and 2 deletions

View File

@ -1039,10 +1039,10 @@ edje_edit_group_copy(Evas_Object *obj, const char *group_name, const char *copy_
c = eina_str_split(keys[count], "/", 6);
snprintf(buf, sizeof(buf), "edje/scripts/embryo/source/%d/%s", epc->id, c[5]);
eet_write(eetf, buf, data, script_count, 0);
free(c[0]);
free(c);
}
free(keys);
free(c[0]);
free(c);
}
eet_close(eetf);