fix a memory leak in pack_ptr_list
PATCH 1/1 fix a memory leak in pack_ptr_list
Free the last entry when the whole list gets empty.
Signed-off-by Alecs King <[email protected]>
ptrlist.c +1 -0
@@ -72,6 +72,7 @@ restart:if (!entry->nr) {struct ptr_list *prev;if (next == entry) { +free (entry); *listp =NULL ;return ; }
Signature · 1 line
Alecs King