Bug#318879: udpkg: Fix minor memory leak
Package: udpkg
Version: 1.01
Tags: patch
I believe there is a minor memory leak in udpkg. This patch fixes it.
It will need a review and some testing before it is commited.
Index: status.c
===================================================================
--- status.c (revisjon 29314)
+++ status.c (arbeidskopi)
@@ -106,6 +111,8 @@
strcat(multiple_lines, " ");
strcat(multiple_lines, buf);
}
+ if (NULL != *ml)
+ free(*ml);
*ml = multiple_lines;
ungetc(ch, f);
return EXIT_SUCCESS;
Reply to: