[Oisf-devel] codes of free mem of suricata

iswalker mail2cissp at gmail.com
Tue Jan 25 09:03:03 UTC 2011


code version sucrcata-1.1-beta1

the codes miss free mem in suricata

alert_debuglog.c/AlertDebugLogInitCtx

OutputCtx *AlertDebugLogInitCtx(ConfNode *conf)
{
 ............

    /** fill the new LogFileCtx with the specific AlertDebugLog
configuration */
       ret=AlertDebugLogOpenFileCtx(file_ctx, filename);

    if(ret < 0) {
    *     LogFileFreeCtx(logfile_ctx);  *//the free codes missed, ISwalker
        return NULL;
    }

............

    return output_ctx;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20110125/8175b6b1/attachment-0002.html>


More information about the Oisf-devel mailing list