From b1f4e067197eb80fecdd69a6075e55867b357156 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 11 Oct 2025 11:33:20 +0200 Subject: [PATCH] unittests: clean up memory for gre tests --- src/decode-gre.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decode-gre.c b/src/decode-gre.c index a383c815c2..6ab918910a 100644 --- a/src/decode-gre.c +++ b/src/decode-gre.c @@ -310,7 +310,7 @@ static int DecodeGREtest01 (void) DecodeGRE(&tv, &dtv, p, raw_gre, sizeof(raw_gre)); FAIL_IF_NOT(ENGINE_ISSET_EVENT(p, GRE_PKT_TOO_SMALL)); - SCFree(p); + PacketFree(p); PASS; } @@ -346,7 +346,7 @@ static int DecodeGREtest02 (void) DecodeGRE(&tv, &dtv, p, raw_gre, sizeof(raw_gre)); FAIL_IF_NOT(ENGINE_ISSET_EVENT(p, GRE_WRONG_VERSION)); - SCFree(p); + PacketFree(p); PASS; } @@ -383,7 +383,7 @@ static int DecodeGREtest03 (void) DecodeGRE(&tv, &dtv, p, raw_gre, sizeof(raw_gre)); FAIL_IF_NOT(PacketIsGRE(p)); - SCFree(p); + PacketFree(p); PASS; } #endif /* UNITTESTS */