eolian/eo1_generator: Fix leak in error path

We allocated tmpstr so we should free it before we return in the error case.

CID 1191926
This commit is contained in:
Stefan Schmidt 2014-03-19 16:40:52 +01:00
parent 897b70437f
commit 44a54caa16
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ eo1_header_generate(const char *classname, Eina_Strbuf *buf)
if (!eolian_class_exists(classname))
{
ERR ("Class \"%s\" not found in database", classname);
free(tmpstr);
return EINA_FALSE;
}