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:
parent
9a90987706
commit
bb34586ca6
2 changed files with 10 additions and 2 deletions
|
@ -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>
|
||||
|
||||
Add support for the SFS filesystem.
|
||||
|
|
6
fs/sfs.c
6
fs/sfs.c
|
@ -485,7 +485,8 @@ grub_sfs_open (struct grub_file *file, const char *name)
|
|||
fail:
|
||||
if (data && fdiro != &data->diropen)
|
||||
grub_free (fdiro);
|
||||
grub_free (data->label);
|
||||
if (data)
|
||||
grub_free (data->label);
|
||||
grub_free (data);
|
||||
|
||||
#ifndef GRUB_UTIL
|
||||
|
@ -565,7 +566,8 @@ grub_sfs_dir (grub_device_t device, const char *path,
|
|||
fail:
|
||||
if (data && fdiro != &data->diropen)
|
||||
grub_free (fdiro);
|
||||
grub_free (data->label);
|
||||
if (data)
|
||||
grub_free (data->label);
|
||||
grub_free (data);
|
||||
|
||||
#ifndef GRUB_UTIL
|
||||
|
|
Loading…
Reference in a new issue