comparison 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
comparison
equal deleted inserted replaced
121:90eab30d2f79 122:18a64ac14d2a
104 throw(err); 104 throw(err);
105 } 105 }
106 } 106 }
107 107
108 void audioDB::cleanup() { 108 void audioDB::cleanup() {
109 cmdline_parser_free(&args_info);
109 if(indata) 110 if(indata)
110 munmap(indata,statbuf.st_size); 111 munmap(indata,statbuf.st_size);
111 if(db) 112 if(db)
112 munmap(db,O2_DEFAULTDBSIZE); 113 munmap(db,O2_DEFAULTDBSIZE);
113 if(dbfid>0) 114 if(dbfid>0)