src/file_doc.c: fix memory leak reported by coverity scan

This commit is contained in:
Christophe Grenier 2013-11-01 12:08:01 +01:00
parent 1c3a9fb8d9
commit 159a0fa750

View file

@ -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 ;
}