Fix a couple missed frees on exit.
There were harmless, but we should fix them for correctness.
This commit is contained in:
parent
1b75093a43
commit
c160a8c8fd
@ -380,6 +380,7 @@ rescan:
|
|||||||
sqlite3_close(db);
|
sqlite3_close(db);
|
||||||
log_close();
|
log_close();
|
||||||
freeoptions();
|
freeoptions();
|
||||||
|
free(children);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
else if (*scanner_pid < 0)
|
else if (*scanner_pid < 0)
|
||||||
@ -1317,6 +1318,8 @@ shutdown:
|
|||||||
if (sbeacon >= 0)
|
if (sbeacon >= 0)
|
||||||
close(sbeacon);
|
close(sbeacon);
|
||||||
#endif
|
#endif
|
||||||
|
if (smonitor >= 0)
|
||||||
|
close(smonitor);
|
||||||
|
|
||||||
for (i = 0; i < n_lan_addr; i++)
|
for (i = 0; i < n_lan_addr; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user