possible memleaks in libkabc

Christian Spiel spiel at theochem.tuwien.ac.at
Thu Oct 12 13:38:23 BST 2006


Hi!

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

Regards

Christian Spiel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchforkabc.diff
Type: text/x-diff
Size: 812 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061012/82c7a4b6/attachment.diff>


More information about the kde-core-devel mailing list