From: Rusty Russell Date: Tue, 29 Nov 2011 22:48:11 +0000 (+1030) Subject: failtest: add comment about limitations of untracked pointers. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=4f2f6f1eba6cc2bcb0683c50269d1dbbe73ed167 failtest: add comment about limitations of untracked pointers. --- diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index 24c394aa..ff33c7a5 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -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);