From: Victor Julien Date: Fri, 27 Sep 2013 09:42:42 +0000 (+0200) Subject: Fix small leak in ports validation at startup X-Git-Tag: suricata-2.0beta2~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1be6a8a48ba887318b169996932a388b4aad0193;p=thirdparty%2Fsuricata.git Fix small leak in ports validation at startup --- diff --git a/src/detect-engine-port.c b/src/detect-engine-port.c index 73c8dba8e5..a5562fcd76 100644 --- a/src/detect-engine-port.c +++ b/src/detect-engine-port.c @@ -1346,9 +1346,9 @@ int DetectPortTestConfVars(void) } if (gh != NULL) - DetectPortFree(gh); + DetectPortCleanupList(gh); if (ghn != NULL) - DetectPortFree(ghn); + DetectPortCleanupList(ghn); } return 0;