[-] Free events on exit (turns out event_base_free does not free them)

Credit @whatdoineed2do, ref. pr #797
This commit is contained in:
ejurgensen
2019-09-09 22:21:23 +02:00
parent 0a593463b8
commit 4ab734343c
11 changed files with 45 additions and 32 deletions

View File

@@ -919,6 +919,8 @@ main(int argc, char **argv)
DPRINTF(E_LOG, L_MAIN, "Stopping gracefully\n");
ret = EXIT_SUCCESS;
event_free(sig_event);
/*
* On a clean shutdown, bring mDNS down first to give a chance
* to the clients to perform a clean shutdown on their end
@@ -971,6 +973,8 @@ main(int argc, char **argv)
}
mdns_fail:
event_base_free(evbase_main);
daemon_fail:
if (background)
{