tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 391ef5e42cc79982a28aaaf22e9f9b255f6910d3
parent c4dd38e625a105a5d5d29242a8531da9677c98d8
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue, 10 Jul 2018 20:16:37 -0400

Explain why we use raw_free with getdelim result.

Diffstat:
Msrc/feature/dircache/dirserv.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/feature/dircache/dirserv.c b/src/feature/dircache/dirserv.c @@ -2682,8 +2682,10 @@ dirserv_read_measured_bandwidths(const char *from_file, rv = 0; err: - if (line) + if (line) { + // we need to raw_free this buffer because we got it from tor_getdelim() raw_free(line); + } if (fp) fclose(fp); return rv;