confuse-devel
[Top][All Lists]
Advanced

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

[Confuse-devel] libConfuse 1.2.3 title leak?


From: Mike
Subject: [Confuse-devel] libConfuse 1.2.3 title leak?
Date: Fri, 4 Apr 2003 22:22:19 -0600
User-agent: Mutt/1.5.4i

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]