[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a couple of memory leaks in rend_add_service spotted by coverity



commit 6a6233b70b4b496834196960aef896da33d13331
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Nov 17 17:14:49 2011 -0500

    Fix a couple of memory leaks in rend_add_service spotted by coverity
---
 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 620ce0b..e0c1a8c 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;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits