commit | 78864aa9a5f5f662adea00a219a61aff1841de66 | [log] [tgz] |
---|---|---|
author | Matt Fleming <matt.fleming@intel.com> | Fri Aug 26 10:08:15 2011 +0100 |
committer | Matt Fleming <matt.fleming@intel.com> | Fri Aug 26 23:12:08 2011 +0100 |
tree | b8d21f73e5e0ec62bfd863b7b3cc2f5b04f14675 | |
parent | 2fbbf0fee5d9166722d518b328186256c10eca56 [diff] |
efilinux: Fix memory leaks in the error path We leak a few chunks of memory if we take the error path in efi_main(). Be sure to free the memory and clean up the file handles in fs_exit(). Now that the caller of load_image() calls fs_exit() in the error path we don't need to do it in the bzImage code (the kernel will reclaim 'fs_devices' anyway if it loads successfully), but we do need to be sure to close any open file handles. Signed-off-by: Matt Fleming <matt.fleming@intel.com>