From: Anoop Saldanha Date: Mon, 16 Apr 2012 16:42:07 +0000 (+0530) Subject: Free membuffer before clearing enclosing parent instance X-Git-Tag: suricata-1.3beta2~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61d5fe33c9a68d637c6e8a5d3a62b1296bdd4332;p=thirdparty%2Fsuricata.git Free membuffer before clearing enclosing parent instance --- diff --git a/src/log-httplog.c b/src/log-httplog.c index daf991bf7c..3e1118706b 100644 --- a/src/log-httplog.c +++ b/src/log-httplog.c @@ -406,9 +406,9 @@ TmEcode LogHttpLogThreadDeinit(ThreadVars *t, void *data) return TM_ECODE_OK; } + MemBufferFree(aft->buffer); /* clear memory */ memset(aft, 0, sizeof(LogHttpLogThread)); - MemBufferFree(aft->buffer); SCFree(aft); return TM_ECODE_OK;