unittests: clean up memory for reputation tests

Don't call SRepInit twice.
pull/14025/head
Victor Julien 10 months ago committed by Victor Julien
parent 948d9a805c
commit 851ecfd263

@ -28,12 +28,11 @@
#include "stream-tcp.h" #include "stream-tcp.h"
#include "util-unittest-helper.h" #include "util-unittest-helper.h"
#define TEST_INIT \ #define TEST_INIT \
DetectEngineCtx *de_ctx = DetectEngineCtxInit(); \ DetectEngineCtx *de_ctx = DetectEngineCtxInit(); \
FAIL_IF(de_ctx == NULL); \ FAIL_IF(de_ctx == NULL); \
SRepInit(de_ctx); \ \
\ Address a; \
Address a; \
uint8_t cat = 0, value = 0; uint8_t cat = 0, value = 0;
#define TEST_INIT_WITH_PACKET_IPV6(src, dst) \ #define TEST_INIT_WITH_PACKET_IPV6(src, dst) \

Loading…
Cancel
Save