From: Victor Julien Date: Mon, 17 Sep 2012 07:56:52 +0000 (+0200) Subject: profiling: make sure counters are reset after a reload. X-Git-Tag: suricata-1.4beta2~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3da3e3264c05e265843192e8ac389499f0901bc9;p=thirdparty%2Fsuricata.git profiling: make sure counters are reset after a reload. --- diff --git a/src/util-profiling-rules.c b/src/util-profiling-rules.c index 7afa52e1fd..fc28077465 100644 --- a/src/util-profiling-rules.c +++ b/src/util-profiling-rules.c @@ -412,7 +412,9 @@ SCProfilingRuleDump(SCProfileDetectCtx *rules_ctx) fprintf(fp,"\n"); if (fp != stdout) fclose(fp); + SCFree(summary); SCLogInfo("Done dumping profiling data."); + memset(rules_profile_data, 0x00, sizeof(rules_profile_data)); } /**