mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
a note for nick about other memory not freed at exit
svn:r4275
This commit is contained in:
parent
3d1d44f55b
commit
c95677725a
@ -784,6 +784,7 @@ static void second_elapsed_callback(int fd, short event, void *args)
|
|||||||
int seconds_elapsed;
|
int seconds_elapsed;
|
||||||
or_options_t *options = get_options();
|
or_options_t *options = get_options();
|
||||||
if (!timeout_event) {
|
if (!timeout_event) {
|
||||||
|
/* XXX NM: We don't free timeout_event on exit. */
|
||||||
timeout_event = tor_malloc_zero(sizeof(struct event));
|
timeout_event = tor_malloc_zero(sizeof(struct event));
|
||||||
evtimer_set(timeout_event, second_elapsed_callback, NULL);
|
evtimer_set(timeout_event, second_elapsed_callback, NULL);
|
||||||
one_second.tv_sec = 1;
|
one_second.tv_sec = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user