From b0e0394cb22d3ea10816e3fa110012eafbf9844c Mon Sep 17 00:00:00 2001 From: andrej Date: Fri, 9 Dec 2022 12:10:56 +0100 Subject: [PATCH] interfaces-plugin: remove utils/memory from unit tests --- src/interfaces/tests/interfaces_utest.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/interfaces/tests/interfaces_utest.c b/src/interfaces/tests/interfaces_utest.c index f1f53801..4bf70593 100644 --- a/src/interfaces/tests/interfaces_utest.c +++ b/src/interfaces/tests/interfaces_utest.c @@ -6,9 +6,6 @@ #include #include -/* xmalloc, FREE_SAFE */ -#include "utils/memory.h" - /* load api */ #include "plugin/api/interfaces/load.h" @@ -90,7 +87,7 @@ int main(void) static int setup(void **state) { - interfaces_ctx_t *ctx = xmalloc(sizeof(interfaces_ctx_t)); + interfaces_ctx_t *ctx = malloc(sizeof(interfaces_ctx_t)); if (!ctx) { return -1; } @@ -104,7 +101,7 @@ static int setup(void **state) static int teardown(void **state) { if (*state) { - FREE_SAFE(*state); + free(*state); } return 0;