From: Timo Kokkonen Date: Fri, 27 Aug 2010 17:40:23 +0000 (+0300) Subject: parser: Free pidlist entries after removed from the list X-Git-Url: http://git.itanic.dy.fi/?p=scan-pagemap;a=commitdiff_plain;h=38b3a99d33b858a366539575bbc562193fb72997 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 --- 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; } }