* grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak

when replacing an existing device.
This commit is contained in:
Colin Watson 2011-04-01 15:35:09 +01:00
parent cfed2ad097
commit 186ae367af
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2011-04-01 Colin Watson <cjwatson@ubuntu.com>
* grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
when replacing an existing device.
2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some

View File

@ -97,10 +97,6 @@ grub_cmd_loopback (grub_extcmd_context_t ctxt, int argc, char **args)
if (newdev)
{
char *newname = grub_strdup (args[1]);
if (! newname)
goto fail;
grub_file_close (newdev->file);
newdev->file = file;