[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix more unit test leaks.
commit ed4aebcd975eff6a88e07d3db27596f8a32207bd
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri Nov 4 14:35:15 2016 -0400
Fix more unit test leaks.
---
src/test/test_hs_cache.c | 6 +++++-
src/test/test_hs_descriptor.c | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/test/test_hs_cache.c b/src/test/test_hs_cache.c
index e05e1f2..a9f1fe1 100644
--- a/src/test/test_hs_cache.c
+++ b/src/test/test_hs_cache.c
@@ -235,7 +235,7 @@ test_directory(void *arg)
}
done:
- ;
+ hs_descriptor_free(desc1);
}
static void
@@ -432,6 +432,10 @@ test_hsdir_revision_counter_check(void *arg)
/* Check that the revision counter is correct */
tt_int_op(received_desc->plaintext_data.revision_counter, ==, 1312);
+
+ hs_descriptor_free(received_desc);
+ received_desc = NULL;
+ tor_free(received_desc_str);
}
/* Increment the revision counter and try again. Should work. */
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c
index 47e7037..5ddb4d0 100644
--- a/src/test/test_hs_descriptor.c
+++ b/src/test/test_hs_descriptor.c
@@ -470,7 +470,7 @@ test_link_specifier(void *arg)
}
done:
- return;
+ smartlist_free(link_specifiers);
}
static void
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits