Commit 4f2f6f1e authored by Rusty Russell's avatar Rusty Russell

failtest: add comment about limitations of untracked pointers.

parent 36d54ff6
......@@ -830,6 +830,9 @@ void *failtest_realloc(void *ptr, size_t size, const char *file, unsigned line)
return p->u.realloc.ret;
}
/* FIXME: Record free, so we can terminate fixup_ptr_history correctly.
* If there's an alloc we don't see, it could get confusing if it matches
* a previous allocation we did see. */
void failtest_free(void *ptr)
{
fixup_ptr_history(ptr);
......
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