* grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
when replacing an existing device.
This commit is contained in:
parent
cfed2ad097
commit
186ae367af
2 changed files with 5 additions and 4 deletions
|
@ -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>
|
2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
|
Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
|
||||||
|
|
|
@ -97,10 +97,6 @@ grub_cmd_loopback (grub_extcmd_context_t ctxt, int argc, char **args)
|
||||||
|
|
||||||
if (newdev)
|
if (newdev)
|
||||||
{
|
{
|
||||||
char *newname = grub_strdup (args[1]);
|
|
||||||
if (! newname)
|
|
||||||
goto fail;
|
|
||||||
|
|
||||||
grub_file_close (newdev->file);
|
grub_file_close (newdev->file);
|
||||||
newdev->file = file;
|
newdev->file = file;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue