[PATCH] make analyzer track memory allocated by if_nameindex

Daniel Fahlgren daniel at fahlgren.se
Tue Aug 26 08:45:45 PDT 2014


Hi,

The MallocChecker does currently not track the memory allocated by
if_nameindex. That memory is dynamically allocated and should be freed
by calling if_freenameindex. The attached patch teaches the checker
about these functions.

Memory allocated by if_nameindex is treated as a separate allocation
"family". That way the checker can verify it is freed by the correct
function.

Any comments / feedback?

Best regards,
Daniel Fahlgren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifnameindex.patch
Type: text/x-patch
Size: 9800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140826/a6a31696/attachment.bin>


More information about the cfe-commits mailing list