Hi,

after using the temporary buffer "ps" for parse_addr, it is not
released after successful operation.


Tobias

Index: parser.c
===================================================================
RCS file: /cvs/src/usr.sbin/ospf6ctl/parser.c,v
retrieving revision 1.12
diff -u -p -r1.12 parser.c
--- parser.c    21 Oct 2012 21:30:44 -0000      1.12
+++ parser.c    17 Nov 2014 10:09:55 -0000
@@ -334,6 +334,7 @@ parse_prefix(const char *word, struct in
                        free(ps);
                        return (0);
                }
+               free(ps);
 
                inet6applymask(addr, addr, mask);
                *prefixlen = mask;

Reply via email to