>>>>> On Tue, 17 Jan 2012 10:50:44 +0100, Jan Safranek <[email protected]> >>>>> said:
JS> It's not that easy, agent_registry.c:1164 was only an example. There are JS> other places, where the reginfo is not freed before returning error from JS> this function. Ok, where are the others? We can fix them too of course. The documentation has still clearly stated that it'll be freed, which makes this: JS> In addition, Coverity tells me that there some callers use reginfo when JS> netsnmp_register_mib() fails (-> sigsegv), again, one example for all: JS> hrSWInstalledTable.c:143: freed_arg: "netsnmp_register_table" frees "reg". JS> hrSWInstalledTable.c:167: double_free: Calling JS> "netsnmp_handler_registration_free" frees pointer "reg" which has JS> already been freed. clearly a mistake. -- Wes Hardaker Please mail all replies to [email protected] ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
