summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-06-10 14:53:11 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-06-13 10:52:13 +0100
commitb776fb27f90ddc8b61f2caea73468ddb4cd3b090 (patch)
tree265d6e947ec8a9a45c645577b4658b397b48c823
parentdbd6a6bcc43e108972e042804de31db07456797e (diff)
downloadelementary-b776fb27f90ddc8b61f2caea73468ddb4cd3b090.tar.gz
elm_cnp: Fix memory leak in error path.
We allocate info->filename in all cases but missed a free in the error path.
-rw-r--r--src/lib/elm_cnp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index dbec1b1ba..bed7df4e6 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -1921,6 +1921,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