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:
parent
897b70437f
commit
44a54caa16
|
@ -253,6 +253,7 @@ eo1_header_generate(const char *classname, Eina_Strbuf *buf)
|
||||||
if (!eolian_class_exists(classname))
|
if (!eolian_class_exists(classname))
|
||||||
{
|
{
|
||||||
ERR ("Class \"%s\" not found in database", classname);
|
ERR ("Class \"%s\" not found in database", classname);
|
||||||
|
free(tmpstr);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue