code version sucrcata-1.1-beta1<br><br>the codes miss free mem in suricata<br><br>alert_debuglog.c/AlertDebugLogInitCtx<br><br>OutputCtx *AlertDebugLogInitCtx(ConfNode *conf)<br>{<br> ............<br><br> /** fill the new LogFileCtx with the specific AlertDebugLog configuration */<br>
ret=AlertDebugLogOpenFileCtx(file_ctx, filename);<br><br> if(ret < 0) {<br> <b style="color: rgb(255, 0, 0);"> LogFileFreeCtx(logfile_ctx); </b>//the free codes missed, ISwalker<br> return NULL;<br>
}<br><br>............<br><br> return output_ctx;<br>}<br><br><br>