Hello, t...@.

dhcpd forgets to free(3) host.

Index: usr.sbin/dhcpd/confpars.c
===================================================================
RCS file: /OpenBSD/src/usr.sbin/dhcpd/confpars.c,v
retrieving revision 1.18
diff -u -r1.18 confpars.c
--- usr.sbin/dhcpd/confpars.c   2 Jan 2010 04:21:16 -0000       1.18
+++ usr.sbin/dhcpd/confpars.c   8 Jan 2010 12:24:34 -0000
@@ -522,8 +522,10 @@
        host->name = name;
        host->group = clone_group(group, "parse_host_declaration");

-       if (!parse_lbrace(cfile))
+       if (!parse_lbrace(cfile)) {
+               free(host);
                return;
+       }

        do {
                token = peek_token(&val, cfile);

Reply via email to