aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-09-17 13:56:40 -0400
committerNick Mathewson <nickm@torproject.org>2020-09-17 13:56:40 -0400
commit54cd2578efa9137bac3220230345c6f4121be20b (patch)
tree5c96030881654d1a3fb069440c433e62d58ff592 /src/test
parentbf5bf33661cc5f29daf8ad7ec0d56f32662fd439 (diff)
parent078194ecafebfff2f6aa37868539ccee15ebe73c (diff)
downloadtor-54cd2578efa9137bac3220230345c6f4121be20b.tar.gz
tor-54cd2578efa9137bac3220230345c6f4121be20b.zip
Merge branch 'maint-0.4.3' into maint-0.4.4
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_rendcache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c
index cfeb640e02..de8c0aef41 100644
--- a/src/test/test_rendcache.c
+++ b/src/test/test_rendcache.c
@@ -974,11 +974,13 @@ test_rend_cache_entry_free(void *data)
// Handles NULL descriptor correctly
e = tor_malloc_zero(sizeof(rend_cache_entry_t));
+ rend_cache_increment_allocation(rend_cache_entry_allocation(e));
rend_cache_entry_free(e);
// Handles non-NULL descriptor correctly
e = tor_malloc_zero(sizeof(rend_cache_entry_t));
e->desc = tor_malloc(10);
+ rend_cache_increment_allocation(rend_cache_entry_allocation(e));
rend_cache_entry_free(e);
/* done: */