diff audioDB.cpp @ 122:18a64ac14d2a

Now with even fewer memory leaks! Free the args_info cmdline parser thingy on cleanup. In normal operation, at least, this should now lead to a server process that doesn't fall over (or, worse, cause the Linux OOM killer to kill a random process) every day or so...
author mas01cr
date Wed, 17 Oct 2007 14:07:15 +0000
parents 90eab30d2f79
children 26ec0906adb9
line wrap: on
line diff
--- a/audioDB.cpp	Wed Oct 17 13:49:20 2007 +0000
+++ b/audioDB.cpp	Wed Oct 17 14:07:15 2007 +0000
@@ -106,6 +106,7 @@
 }
 
 void audioDB::cleanup() {
+  cmdline_parser_free(&args_info);
   if(indata)
     munmap(indata,statbuf.st_size);
   if(db)