From: Nick Mathewson Date: Thu, 17 Nov 2011 22:14:49 +0000 (-0500) Subject: Fix a couple of memory leaks in rend_add_service spotted by coverity X-Git-Tag: tor-0.2.3.8-alpha~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a6233b70b4b496834196960aef896da33d13331;p=thirdparty%2Ftor.git Fix a couple of memory leaks in rend_add_service spotted by coverity --- diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 620ce0be84..e0c1a8c87a 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;