Interesting find with cppcheck..

chris ahrendt celticht32 at yahoo.com
Tue Aug 4 13:00:14 CDT 2009


I was working on something else and using cppcheck to make sure I was 
not having a memory leak and so forth and decided to try it on wine
here is what is the results of the wine git tree :

[../wine-git/dlls/crypt32/rootstore.c:346]: (error) Resource leak: dir
[../wine-git/dlls/msvcrt/tests/file.c:997]: (error) Resource leak: stream1
[../wine-git/dlls/msvcrt/tests/file.c:997]: (error) Resource leak: stream4
[../wine-git/dlls/msvcrt/tests/heap.c:424]: (error) Deallocating a 
deallocated pointer: mem
[../wine-git/dlls/ntdll/server.c:802]: (error) Resource leak: fd
[../wine-git/tools/fnt2bdf.c:219]: (error) Resource leak: fp
[../wine-git/tools/fnt2bdf.c:653]: (error) Resource leak: fd
[../wine-git/tools/fnt2fon.c:304]: (error) Memory leak: file_lens
[../wine-git/tools/widl/write_msft.c:2540]: (error) Deallocating a 
deallocated pointer: fd
[../wine-git/tools/winebuild/res16.c:187]: (error) Resource leak: fd
[../wine-git/tools/winedump/pe.c:1549]: (error) Memory leak: map

Not sure if I need to write up a bug for this or what... and no I cant 
touch the code due to NDA issues.

Chris






      



More information about the wine-devel mailing list