mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Fix memory leak
svn:r2535
This commit is contained in:
parent
9d5831341e
commit
56a592dbe3
@ -329,8 +329,10 @@ router_nickname_is_in_list(routerinfo_t *router, const char *list)
|
||||
nickname_list = smartlist_create();
|
||||
smartlist_split_string(nickname_list, list, ",",
|
||||
SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
|
||||
SMARTLIST_FOREACH(nickname_list, char *, cp,
|
||||
SMARTLIST_FOREACH(nickname_list, const char *, cp,
|
||||
if (router_nickname_matches(router, cp)) {v=1;break;});
|
||||
SMARTLIST_FOREACH(nickname_list, char *, cp, tor_free(cp));
|
||||
smartlist_free(nickname_list);
|
||||
return v;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user