[PATCH 1/1] link: fix memory leaks due to repeated calls to .io_alloc()

Thomas Haller thaller at redhat.com
Mon Aug 18 14:25:49 PDT 2014


On Mon, 2014-08-18 at 15:24 +0200, Thomas Haller wrote:
> All the io_alloc() implementation unconditionally allocated
> new memory, thus leaking memory if called more then once.
> Fix io_alloc() implementations not to allocate new memory
> if not needed.
> 
> This happens for example in link_msg_parser() which first
> calls rtnl_link_set_type():


Note that pull request https://github.com/thom311/libnl/pull/60
proposes a different fix.

We could use both approaches.


Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20140818/b6538f28/attachment.sig>


More information about the libnl mailing list