mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39:22 +00:00
* grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
when replacing an existing device.
This commit is contained in:
1 parent
cfed2ad097
commit
186ae367af
2 files changed
+5
-4
No files matched your search
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user