Coverity 1038116 & 1038117: memory leaks on 'app-layer-event' keyword parsing failure

pull/401/merge
Victor Julien 12 years ago
parent 778851626c
commit 5c5b2f98dd

@ -164,7 +164,13 @@ int DetectAppLayerEventSetup(DetectEngineCtx *de_ctx, Signature *s, char *arg)
return 0;
error:
error:
if (data)
SCFree(data);
if (sm) {
sm->ctx = NULL;
SigMatchFree(sm);
}
return -1;
}

Loading…
Cancel
Save