]> git.proxmox.com Git - mirror_frr.git/commitdiff
ripd: Free leaked memory on shutdown
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 Sep 2017 16:51:27 +0000 (12:51 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 Sep 2017 16:51:27 +0000 (12:51 -0400)
Usage of the address sanitizer and topotests showed
that rip was leaking obuf on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ripd/ripd.c

index 89d67aaf2a19e567e355f7e460a2de534b534974..93b75bd5a321b3b57e2fff7451b6bc2ed641cad2 100644 (file)
@@ -3843,6 +3843,7 @@ void rip_clean(void)
                        rip->sock = -1;
                }
 
+               stream_free(rip->obuf);
                /* Static RIP route configuration. */
                for (rp = route_top(rip->route); rp; rp = route_next(rp))
                        if (rp->info) {