mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Explain why we use raw_free with getdelim result.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user