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;