Fix valgrind error in tls unittest.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent cff0a0bda2
commit d500a52b58

@ -660,14 +660,13 @@ static int DetectTlsVersionTestDetect03(void) {
result = 1; result = 1;
end: end:
if (de_ctx) { if (de_ctx != NULL) {
SigGroupCleanup(de_ctx); SigGroupCleanup(de_ctx);
SigCleanSignatures(de_ctx); SigCleanSignatures(de_ctx);
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
DetectEngineCtxFree(de_ctx); DetectEngineCtxFree(de_ctx);
} }
DetectEngineThreadCtxDeinit(&th_v, (void *)det_ctx);
FlowL7DataPtrFree(&f); FlowL7DataPtrFree(&f);
StreamTcpFreeConfig(TRUE); StreamTcpFreeConfig(TRUE);
FLOW_DESTROY(&f); FLOW_DESTROY(&f);

Loading…
Cancel
Save