signature: Fixes memory leak in parsing app layer event

pull/4383/head
Philippe Antoine 6 years ago committed by Victor Julien
parent fccbd36d37
commit 6e63c957ff

@ -328,8 +328,9 @@ static int DetectAppLayerEventSetupP1(DetectEngineCtx *de_ctx, Signature *s, con
return 0; return 0;
error: error:
if (data) if (data) {
SCFree(data); DetectAppLayerEventFree(data);
}
if (sm) { if (sm) {
sm->ctx = NULL; sm->ctx = NULL;
SigMatchFree(sm); SigMatchFree(sm);

Loading…
Cancel
Save