diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-17 17:14:49 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-17 17:14:49 -0500 |
commit | 6a6233b70b4b496834196960aef896da33d13331 (patch) | |
tree | 7eea195c0781f482d3759c1f09fccc1bd24b9e93 /src | |
parent | 95163ec072d4af00ad0c043fce3e8bccf5f5908b (diff) | |
download | tor-6a6233b70b4b496834196960aef896da33d13331.tar tor-6a6233b70b4b496834196960aef896da33d13331.tar.gz |
Fix a couple of memory leaks in rend_add_service spotted by coverity
Diffstat (limited to 'src')
-rw-r--r-- | src/or/rendservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 620ce0be8..e0c1a8c87 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -174,7 +174,7 @@ rend_add_service(rend_service_t *service) smartlist_len(service->clients) == 0) { log_warn(LD_CONFIG, "Hidden service (%s) with client authorization but no " "clients; ignoring.", - esc_for_log(service->directory)); + escaped(service->directory)); rend_service_free(service); return; } @@ -182,7 +182,7 @@ rend_add_service(rend_service_t *service) if (!smartlist_len(service->ports)) { log_warn(LD_CONFIG, "Hidden service (%s) with no ports configured; " "ignoring.", - esc_for_log(service->directory)); + escaped(service->directory)); rend_service_free(service); } else { int dupe = 0; |