From: Eric Leblond Date: Wed, 17 Oct 2012 06:54:31 +0000 (+0200) Subject: counter: defensive set to NULL in free. X-Git-Tag: suricata-1.4rc1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b26660ac439e31982f42828a730688800bb8ec4;p=thirdparty%2Fsuricata.git counter: defensive set to NULL in free. --- diff --git a/src/counters.c b/src/counters.c index 0b36e26dec..1f08c7f0b7 100644 --- a/src/counters.c +++ b/src/counters.c @@ -420,6 +420,7 @@ static void SCPerfReleaseOPCtx() } SCFree(sc_perf_op_ctx); + sc_perf_op_ctx = NULL; return; }