瀏覽代碼

Fix a double-free in rend_config_services()

Found by coverity scan; CID 1398917
Nick Mathewson 7 年之前
父節點
當前提交
92c3926479
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/or/rendservice.c

+ 0 - 1
src/or/rendservice.c

@@ -691,7 +691,6 @@ rend_config_services(const or_options_t *options, int validate_only)
         log_warn(LD_CONFIG,
                  "HiddenServiceAllowUnknownPorts should be 0 or 1, not %s",
                  line->value);
-        smartlist_free(temp_service_list);
         goto free_and_return;
       }
       log_info(LD_CONFIG,