unittests: clean up memory for base64_decode tests

pull/14025/head
Victor Julien 1 month ago committed by Victor Julien
parent 63fcbae810
commit f00951b875

@ -404,13 +404,12 @@ end:
DetectEngineThreadCtxDeinit(&tv, det_ctx);
}
if (de_ctx != NULL) {
SigCleanSignatures(de_ctx);
SigGroupCleanup(de_ctx);
DetectEngineCtxFree(de_ctx);
}
if (p != NULL) {
UTHFreePacket(p);
}
StatsThreadCleanup(&tv);
return retval;
}
@ -471,6 +470,7 @@ end:
if (p != NULL) {
UTHFreePacket(p);
}
StatsThreadCleanup(&tv);
return retval;
}
@ -520,13 +520,12 @@ end:
DetectEngineThreadCtxDeinit(&tv, det_ctx);
}
if (de_ctx != NULL) {
SigCleanSignatures(de_ctx);
SigGroupCleanup(de_ctx);
DetectEngineCtxFree(de_ctx);
}
if (p != NULL) {
UTHFreePacket(p);
}
StatsThreadCleanup(&tv);
return retval;
}
@ -581,13 +580,12 @@ end:
DetectEngineThreadCtxDeinit(&tv, det_ctx);
}
if (de_ctx != NULL) {
SigCleanSignatures(de_ctx);
SigGroupCleanup(de_ctx);
DetectEngineCtxFree(de_ctx);
}
if (p != NULL) {
UTHFreePacket(p);
}
StatsThreadCleanup(&tv);
return retval;
}

Loading…
Cancel
Save