mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
fs/cbfs: Add missing free.
Found by: Coverity scan.
This commit is contained in:
1 parent
dd430afbf8
commit
b6f21bcb98
1 file changed
+2
-1
+2
-1
@@ -144,7 +144,7 @@ static struct grub_archelp_data *
|
|||||||
grub_cbfs_mount (grub_disk_t disk)
|
grub_cbfs_mount (grub_disk_t disk)
|
||||||
{
|
{
|
||||||
struct cbfs_file hd;
|
struct cbfs_file hd;
|
||||||
struct grub_archelp_data *data;
|
struct grub_archelp_data *data = NULL;
|
||||||
grub_uint32_t ptr;
|
grub_uint32_t ptr;
|
||||||
grub_off_t header_off;
|
grub_off_t header_off;
|
||||||
struct cbfs_header head;
|
struct cbfs_header head;
|
||||||
@@ -196,6 +196,7 @@ grub_cbfs_mount (grub_disk_t disk)
|
|||||||
return data;
|
return data;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
grub_free (data);
|
||||||
grub_error (GRUB_ERR_BAD_FS, "not a cbfs filesystem");
|
grub_error (GRUB_ERR_BAD_FS, "not a cbfs filesystem");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user