e wp gen tool -fix theoretical leak on tool exit

theoretical leak - but not really as porcess exits anyway

fix CID 1425217
This commit is contained in:
Carsten Haitzler 2020-04-18 23:31:11 +01:00
parent 5ac19b1372
commit a6a10d405d
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,6 @@ elm_main(int argc, char **argv)
" }\n" " }\n"
"}\n"); "}\n");
fclose(f); fclose(f);
free(mips);
if (snprintf(cmd_buf, sizeof(cmd_buf), if (snprintf(cmd_buf, sizeof(cmd_buf),
"%s -fastdecomp -id %s -fd %s -sd %s -vd %s -dd %s -md %s " "%s -fastdecomp -id %s -fd %s -sd %s -vd %s -dd %s -md %s "
"%s/bg.edc %s", "%s/bg.edc %s",
@ -492,6 +491,7 @@ elm_main(int argc, char **argv)
} }
ret = system(cmd_buf); ret = system(cmd_buf);
cleanup: cleanup:
free(mips);
ecore_file_recursive_rm(dir); ecore_file_recursive_rm(dir);
evas_object_del(win); evas_object_del(win);
return ret; return ret;