]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
linux/blocklist: Fix memory leak.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 26 Jan 2015 08:50:58 +0000 (09:50 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 26 Jan 2015 08:50:58 +0000 (09:50 +0100)
Found by: Coverity scan.

grub-core/osdep/linux/blocklist.c

index 10ddd11c15b6718fe2142c8fd5b05b09237d7ff5..c77d6085ccb404aeb5ff92bf8b3f8cafe85d1f02 100644 (file)
@@ -130,6 +130,7 @@ grub_install_get_blocklist (grub_device_t root_dev,
                    & (GRUB_DISK_SECTOR_SIZE - 1),
                    fie2->fm_extents[i].fe_length, hook_data);
        }
+      free (fie2);
     }
   close (fd);
 }