detect ports: fix memory leak

Fix mem leak on rules that contained ports like "![21,25,119]".
pull/1887/head
Victor Julien 10 years ago
parent 573284b5ed
commit 066c4b0b24

@ -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;
}

Loading…
Cancel
Save