* grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
This commit is contained in:
parent
19832ddb37
commit
e9cc6b7b0e
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
|
||||
|
||||
2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
|
||||
|
|
|
@ -1087,14 +1087,15 @@ grub_ntfs_uuid (grub_device_t device, char **uuid)
|
|||
if (*uuid)
|
||||
for (ptr = *uuid; *ptr; ptr++)
|
||||
*ptr = grub_toupper (*ptr);
|
||||
free_file (&data->mmft);
|
||||
free_file (&data->cmft);
|
||||
grub_free (data);
|
||||
}
|
||||
else
|
||||
*uuid = NULL;
|
||||
|
||||
grub_dl_unref (my_mod);
|
||||
|
||||
grub_free (data);
|
||||
|
||||
return grub_errno;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue