Commit d73be3a8 authored by David Zeuthen's avatar David Zeuthen
Browse files

only fail the Nth alloc, not all allocs greater than N

parent 84fb8577
......@@ -100,6 +100,11 @@ kit_malloc (size_t bytes)
if (_fail_nth != -1 && _total_allocs == _fail_nth) {
errno = ENOMEM;
_total_allocs++;
//fprintf (stderr, " Failing alloc @\n");
//kit_print_backtrace ();
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment