From 159a0fa750ce874073a8ad9a46abd3ae8ed33897 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 1 Nov 2013 12:08:01 +0100 Subject: [PATCH] src/file_doc.c: fix memory leak reported by coverity scan --- src/file_doc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/file_doc.c b/src/file_doc.c index 7cce9d7b..b6a1017e 100644 --- a/src/file_doc.c +++ b/src/file_doc.c @@ -884,6 +884,7 @@ static void file_rename_doc(const char *old_filename) { free(fat); fclose(file); + free(title); return ; } dir_entries=(struct OLE_DIR *)MALLOC(1<uSectorShift)); @@ -892,6 +893,7 @@ static void file_rename_doc(const char *old_filename) free(fat); free(dir_entries); fclose(file); + free(title); return ; }