Add memory debugging (--enable-mem-debug), find and fix several small (and not so small) memory leaks

This commit is contained in:
Ron Pedde
2007-01-17 01:06:16 +00:00
parent b23f0d226b
commit 14fe9f9c6c
53 changed files with 627 additions and 364 deletions

View File

@@ -76,6 +76,8 @@
#include <sys/wait.h>
#endif
#include "daapd.h"
#include "conf.h"
#include "configfile.h"
#include "err.h"
@@ -578,6 +580,7 @@ int main(int argc, char *argv[]) {
DPRINTF(E_LOG,L_MAIN|L_DB|L_SCAN,"Scanned %d songs (was %d) in "
"%d seconds\n",song_count,old_song_count,
time(NULL)-start_time);
conf_dispose_array(mp3_dir_array);
}
os_wait(MAIN_SLEEP_INTERVAL);
@@ -610,6 +613,7 @@ int main(int argc, char *argv[]) {
DPRINTF(E_LOG,L_MAIN,"Done!\n");
os_deinit();
mem_dump();
return EXIT_SUCCESS;
}