Hello, SQLite version 3.7.9 2011-11-01 00:52:41
Valgrind reports some memory leaks : ==9709== HEAP SUMMARY: ==9709== in use at exit: 94,248 bytes in 42 blocks ==9709== total heap usage: 1,338 allocs, 1,296 frees, 1,066,595 bytes allocated ==9709== ==9709== 80 bytes in 1 blocks are possibly lost in loss record 7 of 28 ==9709== at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==9709== by 0x437230: sqlite3MemMalloc (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x437C47: mallocWithAlarm (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x437CE2: sqlite3Malloc (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x437D30: sqlite3_malloc (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x43E1BC: findInodeInfo (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x4405CC: fillInUnixFile (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x440EA5: unixOpen (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x436D1D: sqlite3OsOpen (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x448292: sqlite3PagerOpen (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x4509F6: sqlite3BtreeOpen (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x4B44E4: openDatabase (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== ==9709== 94,168 (840 direct, 93,328 indirect) bytes in 1 blocks are definitely lost in loss record 28 of 28 ==9709== at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==9709== by 0x437230: sqlite3MemMalloc (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x437C47: mallocWithAlarm (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x437CE2: sqlite3Malloc (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x438351: sqlite3MallocZero (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x4B41DD: openDatabase (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x4B4735: sqlite3_open_v2 (in /home/huji/undev/vhs/Sondes/unix/sondes.exe) ==9709== by 0x409792: main (main.c:191) ==9709== The seconde seems to come from sqlite3 *db, which should be entirely freed in sqlite3_close(). For the first one, I didn't inspect. Alfred. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users