From c160a8c8fdfde445880f4853fd4279f821e6cdaa Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 10 Sep 2015 11:55:54 -0700 Subject: [PATCH] Fix a couple missed frees on exit. There were harmless, but we should fix them for correctness. --- minidlna.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/minidlna.c b/minidlna.c index c9303b1..7933f54 100644 --- a/minidlna.c +++ b/minidlna.c @@ -380,6 +380,7 @@ rescan: sqlite3_close(db); log_close(); freeoptions(); + free(children); exit(EXIT_SUCCESS); } else if (*scanner_pid < 0) @@ -1317,6 +1318,8 @@ shutdown: if (sbeacon >= 0) close(sbeacon); #endif + if (smonitor >= 0) + close(smonitor); for (i = 0; i < n_lan_addr; i++) {