]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a couple of memory leaks in rend_add_service spotted by coverity
authorNick Mathewson <nickm@torproject.org>
Thu, 17 Nov 2011 22:14:49 +0000 (17:14 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 17 Nov 2011 22:14:49 +0000 (17:14 -0500)
src/or/rendservice.c

index 620ce0be842a870463baaa7bdc6995a3a518b827..e0c1a8c87a8484c3afe032af980ccb6e5524623d 100644 (file)
@@ -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;