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;