[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Memory cleanup / leakage

From: Branko Čibej <brane_at_wandisco.com>
Date: Fri, 21 Jun 2013 16:04:24 +0200

On 21.06.2013 15:48, Ivan Zhakov wrote:
> On Fri, Jun 21, 2013 at 4:48 PM, <Kai-Uwe.Schieser_at_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_at_wandisco.com
Received on 2013-06-21 16:05:00 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.