diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-01-15 10:46:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-03-25 16:35:33 -0400 |
commit | a7681525ab670c2b7a783f9e1285bf9a8e97d1ea (patch) | |
tree | 52e35ff7af6efc0599de9815465610d5351f0341 /src/test/test_pubsub_msg.c | |
parent | 271a67182211a954dba1082739f8fe7daf421f6c (diff) | |
download | tor-a7681525ab670c2b7a783f9e1285bf9a8e97d1ea.tar.gz tor-a7681525ab670c2b7a783f9e1285bf9a8e97d1ea.zip |
Add function to clear publish bindings.
When we clean up, we'd like to clear all the bindings that refer to
a dispatch_t, so that they don't have dangling pointers to it.
Diffstat (limited to 'src/test/test_pubsub_msg.c')
-rw-r--r-- | src/test/test_pubsub_msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_pubsub_msg.c b/src/test/test_pubsub_msg.c index 5b771d45a5..41a8a25ad6 100644 --- a/src/test/test_pubsub_msg.c +++ b/src/test/test_pubsub_msg.c @@ -148,7 +148,7 @@ setup_dispatcher(const struct testcase_t *testcase) tor_free(sys); } - return pubsub_builder_finalize(builder); + return pubsub_builder_finalize(builder, NULL); } static int |