confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Confuse-devel] libConfuse 1.2.3 title leak?


From: Martin Hedenfalk
Subject: Re: [Confuse-devel] libConfuse 1.2.3 title leak?
Date: Sun, 6 Apr 2003 22:30:31 +0200

Hi Mike, thanks for the report.

I believe this is fixed in version 2.0.

Thanks / martin

----- Original Message ----- 
From: "Mike" <address@hidden>
To: <address@hidden>
Sent: Saturday, April 05, 2003 6:22 AM
Subject: [Confuse-devel] libConfuse 1.2.3 title leak?


> Heya,
> 
> First I want to say thanks, libConfuse is a nice config parsing library. I 
> started messing with it earlier today.
> 
> I've been using memprof to find and remove memory leaks from my program, and 
> after implementing config parsing with libConfuse, I noticed some leaks being 
> reported in confuse.c (cfg_parse_internal).
> 
> In this case I'm using the <Name> <Title> { } type entries for a few items. 
> After hunting around for a bit I found: opttitle = strdup(yylval); on line 
> 526 of confuse.c.
> 
> If I remove the strdup(), memprof no longer reports the leak.
> 
> Does this sound right or am I missing something? Everything appears to still 
> work properly.
> 
> Thanks,
> 
> Mike






reply via email to

[Prev in Thread] Current Thread [Next in Thread]