summaryrefslogtreecommitdiff
path: root/tests/catalog.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/catalog.c')
-rw-r--r--tests/catalog.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/catalog.c b/tests/catalog.c
index fbccfe5..7192135 100644
--- a/tests/catalog.c
+++ b/tests/catalog.c
@@ -1,6 +1,7 @@
#include "../src/catalog.c"
#include "../src/testing.h"
+#include "../src/util.h"
#include "slurp.h"
@@ -103,9 +104,7 @@ test_s_print_msgs(void) {
assert(strcmp(expected, str) == 0);
- free(str);
- str = NULL;
-
+ freeit((void *)&str);
test_ok();
}
{
@@ -139,8 +138,7 @@ test_s_print_msgs(void) {
assert(strcmp(expected, str) == 0);
- free(str);
- str = NULL;
+ freeit((void *)&str);
test_ok();
}
@@ -258,8 +256,7 @@ test_s_print_msg(void) {
assert(strcmp(expected, str) == 0);
- free(str);
- str = NULL;
+ freeit((void *)&str);
test_ok();
}