Skip to content

Commit abedcfe

Browse files
committed
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.
1 parent afb2ef2 commit abedcfe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/clar/clar_libgit2_alloc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,5 @@ void cl_alloc_limit(size_t bytes)
104104

105105
void cl_alloc_reset(void)
106106
{
107-
git_allocator stdalloc;
108-
git_stdalloc_init_allocator(&stdalloc);
109-
git_allocator_setup(&stdalloc);
107+
git_allocator_setup(NULL);
110108
}

0 commit comments

Comments
 (0)