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;
error:
if (data)
SCFree(data);
if (data) {
DetectAppLayerEventFree(data);
}
if (sm) {
sm->ctx = NULL;
SigMatchFree(sm);

Loading…
Cancel
Save