[tor-commits] [tor/master] Add a missing rend_service_free in rend_service_add

nickm at torproject.org nickm at torproject.org
Sat Dec 3 03:42:45 UTC 2016


commit 93c62f5ac1757f171c8a0b51f8320f48eba885a6
Author: teor <teor2345 at gmail.com>
Date:   Sat Dec 3 08:24:47 2016 +1100

    Add a missing rend_service_free in rend_service_add
---
 src/or/rendservice.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index cd63a49..e3b43d9 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -366,6 +366,7 @@ rend_add_service(smartlist_t *service_list, rend_service_t *service)
                  "have no AF_UNIX support on this platform.  This is "
                  "probably a bug.",
                  p->virtual_port);
+        rend_service_free(service);
         return -1;
 #endif /* defined(HAVE_SYS_UN_H) */
       }





More information about the tor-commits mailing list