[Top][All Lists]

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

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

From: grischka
Subject: Re: [Tinycc-devel] found a resource leak in tcc-0.9.25/tccpe.c
Date: Sun, 29 Nov 2009 14:43:11 +0100
User-agent: Thunderbird (Windows/20090812)

Martin Ettl wrote:

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.

Thanks. Committed to

Please consider sending patches or pushing to our "mob" branch
directly, next time ;)

--- grischka

Best regards


reply via email to

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