fix a memory leak when we ask for "all" networkstatuses and

we get one we don't recognize.
backport candidate.
backbackport candidate.


svn:r9918
This commit is contained in:
Roger Dingledine 2007-03-29 07:02:12 +00:00
parent 6a61f74689
commit f36c613dbc

View File

@ -2517,9 +2517,9 @@ router_set_networkstatus(const char *s, time_t arrived_at,
if (smartlist_string_isin(requested_fingerprints, fp)) { if (smartlist_string_isin(requested_fingerprints, fp)) {
smartlist_string_remove(requested_fingerprints, fp); smartlist_string_remove(requested_fingerprints, fp);
} else { } else {
char *requested =
smartlist_join_strings(requested_fingerprints," ",0,NULL);
if (source != NS_FROM_DIR_ALL) { if (source != NS_FROM_DIR_ALL) {
char *requested =
smartlist_join_strings(requested_fingerprints," ",0,NULL);
log_warn(LD_DIR, log_warn(LD_DIR,
"We received a network status with a fingerprint (%s) that we " "We received a network status with a fingerprint (%s) that we "
"never requested. (We asked for: %s.) Dropping.", "never requested. (We asked for: %s.) Dropping.",