[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE_3_1_BRANCH: kdebase/kioslave/thumbnail
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2002-12-12 10:15:08
[Download RAW message or body]

On Thursday 12 of December 2002 10:26, Eugene Onischenko wrote:
> Lubos Lunak wrote:
> > +    putenv(strdup("SESSION_MANAGER="));
>
> Memory leak here. The strdup result should be freed with free.
> See strdup(3)

 No, it shouldn't, see putenv(3). But you're right, the code is lame, I copied 
and modified it from somewhere else (not that it matters much).

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic