Alexander Roston <[EMAIL PROTECTED]> wrote:
> I've got a small memory
> leak - each time the server accepts a request and adds
> the information to the database, it grabs 3-500 bytes
> of memory and doesn't let it go. I'd like to tell
> sqlite3_release_memory to drop the appropriate amount
> of memory and thus fix the memory leak.
> 

That is not going to fix your memory leak.  First off,
SQLite is very carefully tested for memory leaks, so any
you find are more likely in your own code.  sqlite3_release_memory
will clearly not help you there.  Secondly, even if the
leak does turn out to be in SQLite, the sqlite3_release_memory
is only going to release memory that SQLite knows about,
not memory that has leaked.

Your best bet is to find and fix the leak, methinks.
Not treat the symptoms.
--
D. Richard Hipp   <[EMAIL PROTECTED]>

Reply via email to