projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d54ff
)
failtest: add comment about limitations of untracked pointers.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:48:11 +0000
(09:18 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:48:11 +0000
(09:18 +1030)
ccan/failtest/failtest.c
patch
|
blob
|
history
diff --git
a/ccan/failtest/failtest.c
b/ccan/failtest/failtest.c
index 24c394aa993099024a804a8a1b71161ac9e015ee..ff33c7a539bfe995d4c58c4b76e193b4fb308847 100644
(file)
--- 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);