[quagga-dev 10490] Re: ripd/rip_interface.c memleak from inappropriate strdup() calls

Greg Troxel gdt at ir.bbn.com
Wed May 1 12:49:57 BST 2013


"Charlet, Ricky" <ricky.charlet at hp.com> writes:

> During review, I believe I've spotted a few memory leaks in
> ripd/rip_interface.c.  In several places, there are calls to
> stdlib.h's strdup() function. Memory returned from strdup() never
> seems to be free'd.  For example:

In general, there are wrapper functions for some kinds of malloc
things.  I would not be surprised if there are slow leaks (a few bytes
per interface creation is not likely to be anyone's biggest issue, wrong
though it is).  So you may well have found a real bug.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20130501/f0eebd59/attachment-0001.sig>


More information about the Quagga-dev mailing list