Commit 391ef5e4 authored by Nick Mathewson's avatar Nick Mathewson 🎨
Browse files

Explain why we use raw_free with getdelim result.

parent c4dd38e6
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment