stefan pushed a commit to branch master.
commit c0d435a3e387ea9ba70afa0821d0208f3ff5a518
Author: Stefan Schmidt <[email protected]>
Date: Mon Jun 10 14:53:11 2013 +0100
elm_cnp: Fix memory leak in error path.
We allocate info->filename in all cases but missed a free in the error path.
---
src/lib/elm_cnp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index b9e4c44..79ea9aa 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -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
--
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j