Loading src/common/torgzip.c +4 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,10 @@ tor_gzip_compress(char **out, size_t *out_len, } done: *out_len = stream->total_out; if (stream->total_out > out_size + 4097) { /* If we're wasting more than 4k, don't. */ tor_realloc(*out, stream->total_out + 1); } if (deflateEnd(stream)!=Z_OK) { log_warn(LD_BUG, "Error freeing gzip structures"); goto err; Loading src/or/circuitbuild.c +2 −1 Original line number Diff line number Diff line Loading @@ -1072,6 +1072,7 @@ circuit_get_unhandled_ports(time_t now) int i; for (i = 0; i < smartlist_len(source); ++i) { /*XXXX020 some of these are leaked somewhere.. fix that. */ tmp = tor_malloc(sizeof(uint16_t)); memcpy(tmp, smartlist_get(source, i), sizeof(uint16_t)); smartlist_add(dest, tmp); Loading src/or/main.c +1 −0 Original line number Diff line number Diff line Loading @@ -1763,6 +1763,7 @@ tor_free_all(int postfork) routerlist_free_all(); addressmap_free_all(); set_exit_redirects(NULL); /* free the registered exit redirects */ esc_router_info(NULL); /* free a static field */ dirserv_free_all(); rend_service_free_all(); rend_cache_free_all(); Loading Loading
src/common/torgzip.c +4 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,10 @@ tor_gzip_compress(char **out, size_t *out_len, } done: *out_len = stream->total_out; if (stream->total_out > out_size + 4097) { /* If we're wasting more than 4k, don't. */ tor_realloc(*out, stream->total_out + 1); } if (deflateEnd(stream)!=Z_OK) { log_warn(LD_BUG, "Error freeing gzip structures"); goto err; Loading
src/or/circuitbuild.c +2 −1 Original line number Diff line number Diff line Loading @@ -1072,6 +1072,7 @@ circuit_get_unhandled_ports(time_t now) int i; for (i = 0; i < smartlist_len(source); ++i) { /*XXXX020 some of these are leaked somewhere.. fix that. */ tmp = tor_malloc(sizeof(uint16_t)); memcpy(tmp, smartlist_get(source, i), sizeof(uint16_t)); smartlist_add(dest, tmp); Loading
src/or/main.c +1 −0 Original line number Diff line number Diff line Loading @@ -1763,6 +1763,7 @@ tor_free_all(int postfork) routerlist_free_all(); addressmap_free_all(); set_exit_redirects(NULL); /* free the registered exit redirects */ esc_router_info(NULL); /* free a static field */ dirserv_free_all(); rend_service_free_all(); rend_cache_free_all(); Loading