mirror of https://github.com/thesofproject/sof.git
smex: fix crash in elf_free_module() when input file not found
fclose() seems to require a valid argument. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
4c06d00084
commit
53ebd8abd0
|
@ -536,5 +536,6 @@ void elf_free_module(struct elf_module *module)
|
|||
free(module->prg);
|
||||
free(module->section);
|
||||
free(module->strings);
|
||||
fclose(module->fd);
|
||||
if (module->fd)
|
||||
fclose(module->fd);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue