]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing rend_service_free in rend_service_add
authorteor <teor2345@gmail.com>
Fri, 2 Dec 2016 21:24:47 +0000 (08:24 +1100)
committerteor <teor2345@gmail.com>
Fri, 2 Dec 2016 21:24:47 +0000 (08:24 +1100)
src/or/rendservice.c

index cd63a496da05b684b75498e2d15146f1feb26b49..e3b43d99c33b884fe9fcd5c30e530058fd0e5236 100644 (file)
@@ -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) */
       }