Browse Source

failtest: add comment about limitations of untracked pointers.

Rusty Russell 14 years ago
parent
commit
4f2f6f1eba
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ccan/failtest/failtest.c

+ 3 - 0
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);