test.h: Don't force tests to use must_alloc

This commit is contained in:
Laria 2022-01-22 15:56:19 +01:00
parent 2966d6dc7c
commit d539b920c9

View file

@ -127,7 +127,7 @@ test_main(int argc, const char **argv, struct testdef tests[])
return allok ? 0 : 1;
}
static void *
void *
must_alloc(testctx t, size_t size)
{
void *out = malloc(size);