[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] found a resource leak in tcc-0.9.25/tccpe.c

From: Martin Ettl
Subject: [Tinycc-devel] found a resource leak in tcc-0.9.25/tccpe.c
Date: Sun, 29 Nov 2009 14:33:42 +0100


i have checked the sources of tcc-0.9.25
with the static code analysis tool cppcheck. It found a resource leak in file 
tccpe.c at line 887.

Take a look at the source:

ST_FN void pe_build_exports(struct pe_info *pe)
    FILE *op;

Indeed, there is a missing flcose(op).

I have fixed the leak and attached the file to this mail.

Best regards


Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

Attachment: tccpe.c
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]