Added a voting_schedule_free function to free voting schedules.

Existing Uses of the tor_free function on voting schedules were
replaced with voting_schedule_free.
Fixes #19562.
This commit is contained in:
Daniel Pinto
2016-08-16 17:53:38 +01:00
parent 5e571900b3
commit 8c0fdf6a27
4 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -1328,7 +1328,7 @@ sr_act_post_consensus(const networkstatus_t *consensus)
get_voting_schedule(options,time(NULL), LOG_NOTICE);
time_t interval_starts = voting_schedule->interval_starts;
sr_state_update(interval_starts);
tor_free(voting_schedule);
free_voting_schedule(voting_schedule);
}
}