mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
2005-10-11 Marco Gerards <mgerards@xs4all.nl>
* fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not allocated. (grub_sfs_dir): Likewise.
This commit is contained in:
1 parent
9a90987706
commit
bb34586ca6
2 files changed
+8
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2005-10-11 Marco Gerards <mgerards@xs4all.nl>
|
||||||
|
|
||||||
|
* fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
|
||||||
|
allocated.
|
||||||
|
(grub_sfs_dir): Likewise.
|
||||||
|
|
||||||
2005-10-09 Marco Gerards <mgerards@xs4all.nl>
|
2005-10-09 Marco Gerards <mgerards@xs4all.nl>
|
||||||
|
|
||||||
Add support for the SFS filesystem.
|
Add support for the SFS filesystem.
|
||||||
|
|||||||
@@ -485,6 +485,7 @@ grub_sfs_open (struct grub_file *file, const char *name)
|
|||||||
fail:
|
fail:
|
||||||
if (data && fdiro != &data->diropen)
|
if (data && fdiro != &data->diropen)
|
||||||
grub_free (fdiro);
|
grub_free (fdiro);
|
||||||
|
if (data)
|
||||||
grub_free (data->label);
|
grub_free (data->label);
|
||||||
grub_free (data);
|
grub_free (data);
|
||||||
|
|
||||||
@@ -565,6 +566,7 @@ grub_sfs_dir (grub_device_t device, const char *path,
|
|||||||
fail:
|
fail:
|
||||||
if (data && fdiro != &data->diropen)
|
if (data && fdiro != &data->diropen)
|
||||||
grub_free (fdiro);
|
grub_free (fdiro);
|
||||||
|
if (data)
|
||||||
grub_free (data->label);
|
grub_free (data->label);
|
||||||
grub_free (data);
|
grub_free (data);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user