2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>

Don't leak in SCSI code.
        * disk/scsi.c (grub_scsi_close): free `scsi'.
This commit is contained in:
robertmh 2009-02-27 21:27:01 +00:00
parent 4b6bf4f97c
commit 6e8c9c3a87
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
Don't leak in SCSI code.
* disk/scsi.c (grub_scsi_close): free `scsi'.
2009-02-27 Robert Millan <rmh@aybabtu.com> 2009-02-27 Robert Millan <rmh@aybabtu.com>
* loader/i386/pc/multiboot.c: Move from here ... * loader/i386/pc/multiboot.c: Move from here ...

View file

@ -312,7 +312,8 @@ grub_scsi_close (grub_disk_t disk)
grub_scsi_t scsi; grub_scsi_t scsi;
scsi = disk->data; scsi = disk->data;
return scsi->dev->close (scsi); scsi->dev->close (scsi);
grub_free (scsi);
} }
static grub_err_t static grub_err_t