浏览代码

Add a missing rend_service_free in rend_service_add

teor 8 年之前
父节点
当前提交
93c62f5ac1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/rendservice.c

+ 1 - 0
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) */
       }