tests: reset the allocator to the default

Instead of setting the allocator to stdalloc, just pass `NULL`, in case
we're running with the debug allocator.
This commit is contained in:
Edward Thomson
2024-04-18 17:31:27 +01:00
parent afb2ef21bc
commit abedcfe71c

View File

@@ -104,7 +104,5 @@ void cl_alloc_limit(size_t bytes)
void cl_alloc_reset(void) void cl_alloc_reset(void)
{ {
git_allocator stdalloc; git_allocator_setup(NULL);
git_stdalloc_init_allocator(&stdalloc);
git_allocator_setup(&stdalloc);
} }