From 3b8a00573ceff552e7b003f8d5034a2ae784e505 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Tue, 4 Oct 2011 11:57:26 +0000 Subject: [PATCH] [INFLIB] Fix memory leak svn path=/trunk/; revision=53985 --- reactos/lib/inflib/infhostgen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/lib/inflib/infhostgen.c b/reactos/lib/inflib/infhostgen.c index ff5e15d7d36..e4eedc9f800 100644 --- a/reactos/lib/inflib/infhostgen.c +++ b/reactos/lib/inflib/infhostgen.c @@ -137,6 +137,7 @@ InfHostOpenFile(PHINF InfHandle, if (FileLength != fread(FileBuffer, (size_t)1, (size_t)FileLength, File)) { DPRINT1("fread() failed (errno %d)\n", errno); + FREE(FileBuffer); fclose(File); return -1; }