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:
Stefan Schmidt 2013-06-10 14:53:11 +01:00
parent 15883b69ce
commit 125938e968
1 changed files with 1 additions and 0 deletions

View File

@ -3231,6 +3231,7 @@ _tempfile_new(int size)
/* Set map to NULL and return */
info->map = NULL;
info->len = 0;
free(info->filename);
free(info);
return NULL;
#else