summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-11-01 12:08:01 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-11-01 12:08:01 +0100
commit159a0fa750ce874073a8ad9a46abd3ae8ed33897 (patch)
treed680d39fe9f807579a1143436093e067c37c444e /src
parent1c3a9fb8d94e02c6a22b7a8e9784492b60dbc8a2 (diff)
src/file_doc.c: fix memory leak reported by coverity scan
Diffstat (limited to 'src')
-rw-r--r--src/file_doc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_doc.c b/src/file_doc.c
index 7cce9d7..b6a1017 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<<le16(header->uSectorShift));
@@ -892,6 +893,7 @@ static void file_rename_doc(const char *old_filename)
free(fat);
free(dir_entries);
fclose(file);
+ free(title);
return ;
}