mycmos wrote:

>     I am using sqlite2.8.17 for linux2.6. My program
> is as following:
>    
> int main()
> {
>    sqlite *db;
> 
>    while(1){
>       db = sqlite_open("./example.db",0777,0);
>       if(db == 0){
>          printf("Could not open database.");
>          exit(1);
>       }
>       sleep(2);
>       sqlite_close(db);
>    }
>  
>    return 1;
> }
> 
> When I use cat /proc/meminfo, I found the MemFree is 
> decreasing. Does that means some degree memory leak to
> Sqlite2.8.17?

That can mean a number of things, a leak not necessarily being the most
likely. If there is a leak then you should be able to verify that by
running under the Valgrind tool (http://valgrind.org/).
   Peter.


Reply via email to