Hello, tech@
Following diff fixes memory leak. `debug' is allocated via asprintf(3) so we
need to free it with free(3).
Index: pfctl_parser.c
===================================================================
RCS file: /cvs/src/sbin/pfctl/pfctl_parser.c,v
retrieving revision 1.263
diff -u -r1.263 pfctl_parser.c
--- pfctl_parser.c 18 Mar 2010 12:15:22 -0000 1.263
+++ pfctl_parser.c 20 Mar 2010 20:01:12 -0000
@@ -528,6 +528,7 @@
printf("%-44s", statline);
asprintf(&debug, "Debug: %s", loglevel_to_string(s->debug));
printf("%15s\n\n", debug);
+ free(debug);
if (opts & PF_OPT_VERBOSE) {
printf("Hostid: 0x%08x\n", ntohl(s->hostid));