From 38b3a99d33b858a366539575bbc562193fb72997 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Fri, 27 Aug 2010 20:40:23 +0300 Subject: [PATCH] parser: Free pidlist entries after removed from the list Since there will be no references to the pidlist entries that are removed from the list, it should be freed as well. Signed-off-by: Timo Kokkonen --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index 275da84..e21935f 100644 --- a/parse.c +++ b/parse.c @@ -304,6 +304,7 @@ free: list_for_each_entry_safe(pidl, n, &opts->pidlist, list) { if (pidl->pid == pid) { list_del(&pidl->list); + free(pidl); break; } } -- 2.44.0