forked from enlightenment/efl
elm_cnp: Fix memory leak in error path.
We allocate info->filename in all cases but missed a free in the error path.
This commit is contained in:
parent
15883b69ce
commit
125938e968
|
@ -3231,6 +3231,7 @@ _tempfile_new(int size)
|
||||||
/* Set map to NULL and return */
|
/* Set map to NULL and return */
|
||||||
info->map = NULL;
|
info->map = NULL;
|
||||||
info->len = 0;
|
info->len = 0;
|
||||||
|
free(info->filename);
|
||||||
free(info);
|
free(info);
|
||||||
return NULL;
|
return NULL;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue