M. Strittmatter wrote: > Hi, > > I just discovered, that there may be a little memory leak in libsqlite > version 0.8.6 (2.3.18). I compiled a small test application (see below) with > gcc and the tool ccmalloc > (http://www2.inf.ethz.ch/personal/biere/projects/ccmalloc/). ccmalloc > reported a memory leak of 128 bytes (see the report below). > > Is this a feature or a bug ? >
This is not a true memory leak. The memory allocated is never freed but it does get reused for subsequent invocations of sqlite_open().
The malloced memory is used to initialize some data structures that are needed to work around bugs in the design of POSIX advisory locks. See the file os.c for details. -- D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

