Skip to content

Commit

Permalink
interfaces-plugin: remove utils/memory from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Dec 9, 2022
1 parent 2b2e02c commit b0e0394
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/interfaces/tests/interfaces_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include <errno.h>
#include <unistd.h>

/* xmalloc, FREE_SAFE */
#include "utils/memory.h"

/* load api */
#include "plugin/api/interfaces/load.h"

Expand Down Expand Up @@ -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;
}
Expand All @@ -104,7 +101,7 @@ static int setup(void **state)
static int teardown(void **state)
{
if (*state) {
FREE_SAFE(*state);
free(*state);
}

return 0;
Expand Down

0 comments on commit b0e0394

Please sign in to comment.