]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
counter: defensive set to NULL in free.
authorEric Leblond <eric@regit.org>
Wed, 17 Oct 2012 06:54:31 +0000 (08:54 +0200)
committerEric Leblond <eric@regit.org>
Mon, 19 Nov 2012 22:52:19 +0000 (23:52 +0100)
src/counters.c

index 0b36e26dece5062ca6f2bfee3462faea32070c73..1f08c7f0b73d78cd2dfb58dd0aad9bc41c8bea8c 100644 (file)
@@ -420,6 +420,7 @@ static void SCPerfReleaseOPCtx()
     }
 
     SCFree(sc_perf_op_ctx);
+    sc_perf_op_ctx = NULL;
 
     return;
 }