Fix a memleak when throwing away some build times

This was introduced in f7e6e852e8.
Found by Coverity
This commit is contained in:
Sebastian Hahn 2009-10-10 13:41:44 +02:00
parent 0c70390dd7
commit e35f9414d6

View File

@ -454,6 +454,8 @@ circuit_build_times_parse_state(circuit_build_times_t *cbt,
"Too many build times in state file. "
"Stopping short before %d",
loaded_cnt+count);
SMARTLIST_FOREACH(args, char*, cp, tor_free(cp));
smartlist_free(args);
break;
}