summaryrefslogtreecommitdiff
path: root/src/common/compress_zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/compress_zlib.h')
-rw-r--r--src/common/compress_zlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/compress_zlib.h b/src/common/compress_zlib.h
index 3377e0e8de..701e2f9e89 100644
--- a/src/common/compress_zlib.h
+++ b/src/common/compress_zlib.h
@@ -32,7 +32,9 @@ tor_zlib_compress_process(tor_zlib_compress_state_t *state,
int finish);
void tor_zlib_compress_free_(tor_zlib_compress_state_t *state);
-#define tor_zlib_compress_free(st) FREE_AND_NULL(tor_zlib_compress, (st))
+#define tor_zlib_compress_free(st) \
+ FREE_AND_NULL_UNMATCHED(tor_zlib_compress_state_t, \
+ tor_zlib_compress_free_, (st))
size_t tor_zlib_compress_state_size(const tor_zlib_compress_state_t *state);