From 125938e96804e18ad8afaa9859451c3b6b365f20 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Mon, 10 Jun 2013 14:53:11 +0100 Subject: [PATCH] elm_cnp: Fix memory leak in error path. We allocate info->filename in all cases but missed a free in the error path. --- legacy/elementary/src/lib/elm_cnp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/elementary/src/lib/elm_cnp.c b/legacy/elementary/src/lib/elm_cnp.c index b9e4c44130..79ea9aa1fb 100644 --- a/legacy/elementary/src/lib/elm_cnp.c +++ b/legacy/elementary/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