failtest: don't insert spurious failures if open would fail anyway.
[ccan] / ccan / failtest / failtest_proto.h
index 89e1e1b6fd9e6c67d0ecca3cfac72f6f75992ef3..58337301ee223858ba903210ef586cd4c505c832 100644 (file)
@@ -8,6 +8,7 @@ void *failtest_calloc(size_t nmemb, size_t size,
 void *failtest_malloc(size_t size, const char *file, unsigned line);
 void *failtest_realloc(void *ptr, size_t size,
                       const char *file, unsigned line);
+void failtest_free(void *ptr);
 int failtest_open(const char *pathname,
                  const char *file, unsigned line, ...);
 int failtest_pipe(int pipefd[2], const char *file, unsigned line);