src/file_doc.c: fix memory leak reported by coverity scan
This commit is contained in:
parent
1c3a9fb8d9
commit
159a0fa750
1 changed files with 2 additions and 0 deletions
|
@ -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 ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue