Use correct free function in DetectPortParseInsertString.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent 0815ed7c9e
commit 4e848796d8

@ -878,7 +878,8 @@ static int DetectPortParseInsertString(DetectPort **head, char *s) {
error:
printf("DetectPortParseInsertString error\n");
if (ad != NULL) free(ad);
if (ad != NULL)
DetectPortFree(ad);
return -1;
}

Loading…
Cancel
Save