subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@wandisco.com>
Subject Re: Memory cleanup / leakage
Date Fri, 21 Jun 2013 14:04:24 GMT
On 21.06.2013 15:48, Ivan Zhakov wrote:
> On Fri, Jun 21, 2013 at 4:48 PM,  <Kai-Uwe.Schieser@hydrometer.de> wrote:
>> Please add me to the answer list, cause I am not subscribed.
>>
>>
>> I am using the Binary Package of Subversion library Version 1.7.9 in my
>> software.
>> Everything works fine so far but a little memory leak I detected in my
>> tests. I am not shure if I use everything as I should. Maybe you can help
>> me.
>>
>>
>> I reduced the usage of the lib to the following:
>>
>> Code start:
>>
>>         while(true)
>>         {
>>                  apr_initialize();
>>                  apr_pool_initialize();
> AFAIK it's not allowed to call apr_initialize() more than once per process.

As a matter of fact, apr_initialize/apr_terminate maintain a counter of
the number of calls made. However, apr_pool_initialize is subsumed in
apr_initialize and shouldn't be used in the case you show above.

-- Brane

-- 
Branko ─îibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane@wandisco.com

Mime
View raw message