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:
marco_g 2005-10-11 16:42:32 +00:00
parent 9a90987706
commit bb34586ca6
2 changed files with 10 additions and 2 deletions

View file

@ -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.

View file

@ -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