Interesting find with cppcheck..

Austin English austinenglish at
Tue Aug 4 13:44:06 CDT 2009

On Tue, Aug 4, 2009 at 1:00 PM, chris ahrendt<celticht32 at> wrote:
> 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.

The e-mail is probably enough to get people to look at the issues.


More information about the wine-devel mailing list