]> git.ozlabs.org Git - ccan/commitdiff
failtest: add comment about limitations of untracked pointers.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:48:11 +0000 (09:18 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:48:11 +0000 (09:18 +1030)
ccan/failtest/failtest.c

index 24c394aa993099024a804a8a1b71161ac9e015ee..ff33c7a539bfe995d4c58c4b76e193b4fb308847 100644 (file)
@@ -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);