possible memleaks in libkabc
Tobias Koenig
tokoe at kde.org
Thu Oct 12 16:43:01 BST 2006
On Thu, Oct 12, 2006 at 02:38:23PM +0200, Christian Spiel wrote:
> Hi!
Hi Christian,
> I think I've found two memleaks in KDE3 branch of kabc in vcard21parser.cpp:
>
> 1)In VCard21ParserImpl::parseVCard() a QValueList pointer is created and used
> as a parameter to create a VCard21ParserImpl Object - but it is not freed in
> its destructor.
>
> 2)In VCard21Parser::readFromString() parseVCard is called but the return value
> (a ParserImpl Object) is not freed.
>
> I added both delete calls in the attached patch
Thank you very much, I've applyed it to KDE3 branch. I think the bug
didn't appeared earlier since this code isn't used anymore and just
exists for binary compatible reasons.
Ciao,
Tobias
--
Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061012/44e6d930/attachment.sig>
More information about the kde-core-devel
mailing list