From: Victor Julien Date: Mon, 29 Feb 2016 08:37:04 +0000 (+0100) Subject: detect ports: fix memory leak X-Git-Tag: suricata-3.0.1RC1~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=066c4b0b24c71cd3f30d6418da5e87c837b70d17;p=thirdparty%2Fsuricata.git detect ports: fix memory leak Fix mem leak on rules that contained ports like "![21,25,119]". --- diff --git a/src/detect-engine-port.c b/src/detect-engine-port.c index 6d3d5208eb..1c9c0228f7 100644 --- a/src/detect-engine-port.c +++ b/src/detect-engine-port.c @@ -1275,7 +1275,7 @@ int DetectPortParseMergeNotPorts(DetectPort **head, DetectPort **nhead) /** work with a copy of the ad so we can easily clean up * the ghn group later. */ - ad = DetectPortCopy(NULL, ag); + ad = DetectPortCopySingle(NULL, ag); if (ad == NULL) { goto error; }