From 0c1b3070cfec670190636d74f97c2aaf0e521bdb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 12 Dec 2009 02:07:59 -0500 Subject: Now that FOO_free(NULL) always works, remove checks before calling it. --- src/or/connection_edge.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/or/connection_edge.c') diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index b0ba96164e..a6b3746627 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -795,14 +795,11 @@ addressmap_clean(time_t now) void addressmap_free_all(void) { - if (addressmap) { - strmap_free(addressmap, addressmap_ent_free); - addressmap = NULL; - } - if (virtaddress_reversemap) { - strmap_free(virtaddress_reversemap, addressmap_virtaddress_ent_free); - virtaddress_reversemap = NULL; - } + strmap_free(addressmap, addressmap_ent_free); + addressmap = NULL; + + strmap_free(virtaddress_reversemap, addressmap_virtaddress_ent_free); + virtaddress_reversemap = NULL; } /** Look at address, and rewrite it until it doesn't want any -- cgit v1.2.3-54-g00ecf