[Psi-Devel] Does common.cpp leak memory?

Marcus Dübois marcus at it.su.se
Fri Jul 18 00:40:58 PDT 2008


Hi,

I've got a question about the method fileCopy in the file common.cpp.
To me it seems like it doesn't free/delete the 'dat' pointer correctly  
and I suspect
a memory leak.

I have attached a small patch to this mail and would love to hear your  
thoughts about it.
Maybe I'm wrong and if so please enlight me!

Kind regards
Marcus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: common_cpp_fix_delete_array.patch
Type: application/octet-stream
Size: 391 bytes
Desc: not available
URL: <http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20080718/9c7b3fe5/attachment.obj>
-------------- next part --------------



More information about the Psi-Devel mailing list