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

Thomas Haller thaller at redhat.com
Sun Oct 12 10:53:28 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():


merged patch as:
https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906


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/20141012/a2631830/attachment.sig>


More information about the libnl mailing list