From 4f2f6f1eba6cc2bcb0683c50269d1dbbe73ed167 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 30 Nov 2011 09:18:11 +1030 Subject: [PATCH] failtest: add comment about limitations of untracked pointers. --- ccan/failtest/failtest.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2