Skip to content
Snippets Groups Projects
Commit b0c9ba99 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix a leak

svn:r2183
parent f6cc2187
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment