forked from cory/tildefriends
Use a custom allocator for everything.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3892 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "tests.h"
|
||||
|
||||
#include "mem.h"
|
||||
#include "ssb.tests.h"
|
||||
|
||||
#include <assert.h>
|
||||
@ -559,7 +560,7 @@ static void _tf_test_run(const tf_test_options_t* options, const char* name, voi
|
||||
bool specified = false;
|
||||
if (options->tests)
|
||||
{
|
||||
char* dup = strdup(options->tests);
|
||||
char* dup = tf_strdup(options->tests);
|
||||
char* state = NULL;
|
||||
const char* t = NULL;
|
||||
while ((t = strtok_r(t ? NULL : dup, ",", &state)) != NULL)
|
||||
@ -570,7 +571,7 @@ static void _tf_test_run(const tf_test_options_t* options, const char* name, voi
|
||||
break;
|
||||
}
|
||||
}
|
||||
free(dup);
|
||||
tf_free(dup);
|
||||
}
|
||||
|
||||
if (!options->tests || specified)
|
||||
|
Reference in New Issue
Block a user