[PATCH] fnt2fon: free file_lens to avoid leak
Marcus Meissner
marcus at jet.franken.de
Sat Aug 8 03:49:15 CDT 2009
[../wine-git/tools/fnt2fon.c:304]: (error) Memory leak: file_lens
---
tools/fnt2fon.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/fnt2fon.c b/tools/fnt2fon.c
index aa7d72b..bea1064 100644
--- a/tools/fnt2fon.c
+++ b/tools/fnt2fon.c
@@ -297,6 +297,8 @@ int main(int argc, char **argv)
for(j = 0; j < pad; j++)
fputc(0x00, ofp);
}
+ free (file_lens);
+
fclose(ofp);
output_file = NULL;
--
1.5.6
More information about the wine-patches
mailing list