Fix a couple missed frees on exit.

There were harmless, but we should fix them for correctness.
This commit is contained in:
Justin Maggard 2015-09-10 11:55:54 -07:00
parent 1b75093a43
commit c160a8c8fd

View File

@ -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++)
{