mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
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:
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user