Fix a leak in app layer parser proto code. Free the proto signatures

allocated internally for PM parser.
pull/567/head
Anoop Saldanha 13 years ago
parent fc82614025
commit 980934d670

@ -2319,10 +2319,16 @@ void AppLayerRegisterProbingParser(AlpProtoDetectCtx *ctx,
void AppLayerFreeProbingParsers(AppLayerProbingParser *pp)
{
AppLayerProbingParser *tmp_pp = NULL;
if (pp == NULL)
return;
DeAllocAppLayerProbingParser(pp);
while (pp != NULL) {
tmp_pp = pp->next;
DeAllocAppLayerProbingParser(pp);
pp = tmp_pp;
}
return;
}

Loading…
Cancel
Save