X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.c;fp=ccan%2Ffailtest%2Ffailtest.c;h=ff33c7a539bfe995d4c58c4b76e193b4fb308847;hb=4f2f6f1eba6cc2bcb0683c50269d1dbbe73ed167;hp=24c394aa993099024a804a8a1b71161ac9e015ee;hpb=36d54ff66bdfdc316f666a98c69d2a27e2975fa2;p=ccan 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);