Fix a leak

svn:r2183
This commit is contained in:
Nick Mathewson 2004-08-07 02:59:46 +00:00
parent f6cc218742
commit b0c9ba99f8

View File

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