Skip to content
Back to formatted view

Raw Message

Message-ID: <m2irdniix0.fsf@ziti.local>
Date: 2007-02-27T17:56:11Z
From: Seth Falcon
Subject: RSQLite memory leak?
In-Reply-To: <m2k5y7nuzi.fsf@ziti.local> (Seth Falcon's message of "Sat, 24 Feb 2007 12:47:29 -0800")

Seth Falcon <sfalcon at fhcrc.org> writes:
> Hi Bill,
>
> Bill Northcott <w.northcott at unsw.edu.au> writes:
>
>> I am using RSQLite 0.4-19 with R 2.4.1 on MacOS X 10.4.8.  Both R and  
>> RSQLite are compiled from source using Apple's compilers.
>>
>> The following simple script:
>> library(DBI)
>> library(RSQLite)
>>
>> drv <- dbDriver("SQLite")
>> con <- dbConnect(drv,trad_db)
>>
>> dbDisconnect(con)
>> dbUnloadDriver(drv)
>>
>> gives the output:
>> Warning message:
>> RS-DBI driver warning: (mgr->drvData was not freed (some memory leaked))
>>
>> This seems to be a meaningful warning as when I run a real script  
>> with the same beginning and end a number of time R seems to get into  
>> trouble.
>
> Thanks for the report.  I can reproduce the warning and will see if I
> can find out what's going on.  

I believe that I've found and fixed the memory leak with
dbUnloadDriver and have uploaded a new version (0.4-20) to CRAN this
morning.

In the meantime, you can get the updated source package here:

http://bioconductor.org/packages/misc/

+ seth