logo       

Re: memory usage: msg#00112

db.sqlite.general

Subject: Re: memory usage

Colin Shum wrote:
> OK, another question.
>
> for each time I call sqlite_get_table, a pointer is needed to pass into
> it. sqlite_get_table will return the results of the query as with the
> address of the pointer. If without freeing this table, and using the
> same pointer over and over, the contents of the pointer (the new table
> its pointing to) will be the same chunk of memory (but updated) or will
> be a new chunk (thus resulting in a memory leak)?
>

You get new memory each time (and thus a memory leak.)


--
D. Richard Hipp -- drh-X1OJI8nnyKUAvxtiuMwx3w@xxxxxxxxxxxxxxxx -- 704.948.4565


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Share the magic of Harry Potter with Yahoo! Messenger
http://us.click.yahoo.com/4Q_cgB/JmBFAA/46VHAA/EbFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
sqlite-unsubscribe-VgYJa0VH1e9BDgjK7y7TUQ@xxxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise