aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-26 13:32:36 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-29 12:48:02 -0400
commit212e982d9b21ae1e13639162e491bd690c3ea7a5 (patch)
tree899ec76377c2284ef390eb58d1d9514b0b40e889 /src/or
parent504e2000ed631425780d4b0e509deb6b59ff2561 (diff)
downloadtor-212e982d9b21ae1e13639162e491bd690c3ea7a5.tar.gz
tor-212e982d9b21ae1e13639162e491bd690c3ea7a5.zip
Fix leaks in dir voting tests
Diffstat (limited to 'src/or')
-rw-r--r--src/or/networkstatus.c3
-rw-r--r--src/or/networkstatus.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index ef450073e7..90918d4fef 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -10,6 +10,7 @@
* client or cache.
*/
+#define NETWORKSTATUS_PRIVATE
#include "or.h"
#include "channel.h"
#include "circuitmux.h"
@@ -183,7 +184,7 @@ router_reload_consensus_networkstatus(void)
}
/** Free all storage held by the vote_routerstatus object <b>rs</b>. */
-static void
+STATIC void
vote_routerstatus_free(vote_routerstatus_t *rs)
{
vote_microdesc_hash_t *h, *next;
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h
index 1659818f0a..be0a86cdd8 100644
--- a/src/or/networkstatus.h
+++ b/src/or/networkstatus.h
@@ -99,5 +99,9 @@ document_signature_t *document_signature_dup(const document_signature_t *sig);
void networkstatus_free_all(void);
int networkstatus_get_weight_scale_param(networkstatus_t *ns);
+#ifdef NETWORKSTATUS_PRIVATE
+STATIC void vote_routerstatus_free(vote_routerstatus_t *rs);
+#endif
+
#endif