瀏覽代碼

Fix a leak

svn:r2183
Nick Mathewson 21 年之前
父節點
當前提交
b0c9ba99f8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/router.c

+ 1 - 0
src/or/router.c

@@ -651,6 +651,7 @@ int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router,
 
   tor_free(onion_pkey);
   tor_free(identity_pkey);
+  tor_free(bandwidth_usage);
 
   if(result < 0 || result >= maxlen) {
     /* apparently different glibcs do different things on snprintf error.. so check both */