Author: pschweitzer
Date: Tue Sep 20 12:10:28 2011
New Revision: 53766
URL:
http://svn.reactos.org/svn/reactos?rev=53766&view=rev
Log:
[PEFIXUP]
Fix resources leak
Modified:
trunk/reactos/tools/pefixup.c
Modified: trunk/reactos/tools/pefixup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/pefixup.c?rev=53766&…
==============================================================================
--- trunk/reactos/tools/pefixup.c [iso-8859-1] (original)
+++ trunk/reactos/tools/pefixup.c [iso-8859-1] Tue Sep 20 12:10:28 2011
@@ -282,7 +282,10 @@
*/
len = read(fd_in, hdrbuf, sizeof(elfhdr));
if (!memcmp(hdrbuf, elfhdr, sizeof(elfhdr)))
+ {
+ close(fd_in);
return 0;
+ }
len = lseek(fd_in, 0, SEEK_END);
if (len < sizeof(IMAGE_DOS_HEADER))