mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
another coverity-found memory leak
svn:r17062
This commit is contained in:
parent
95aace5aae
commit
c9bddb24b2
@ -2376,9 +2376,11 @@ entry_guards_prepend_from_config(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (options->EntryNodes)
|
||||
log_info(LD_CIRC,"Adding configured EntryNodes '%s'.",
|
||||
routerset_to_string(options->EntryNodes));
|
||||
if (options->EntryNodes) {
|
||||
char *string = routerset_to_string(options->EntryNodes);
|
||||
log_info(LD_CIRC,"Adding configured EntryNodes '%s'.", string);
|
||||
tor_free(string);
|
||||
}
|
||||
|
||||
entry_routers = smartlist_create();
|
||||
entry_fps = smartlist_create();
|
||||
|
Loading…
Reference in New Issue
Block a user