[2006] 2009-02-27 Vladimir Serbinenko <[email protected]>

Robert Millan <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2006
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2006
Author:   robertmh
Date:     2009-02-27 21:27:01 +0000 (Fri, 27 Feb 2009)
Log Message:
-----------
2009-02-27  Vladimir Serbinenko  <[email protected]>

        Don't leak in SCSI code.
        * disk/scsi.c (grub_scsi_close): free `scsi'.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/disk/scsi.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-02-27 21:19:00 UTC (rev 2005)
+++ trunk/grub2/ChangeLog	2009-02-27 21:27:01 UTC (rev 2006)
@@ -1,3 +1,8 @@
+2009-02-27  Vladimir Serbinenko  <[email protected]>
+
+	Don't leak in SCSI code.
+	* disk/scsi.c (grub_scsi_close): free `scsi'.
+
 2009-02-27  Robert Millan  <[email protected]>
 
 	* loader/i386/pc/multiboot.c: Move from here ...

Modified: trunk/grub2/disk/scsi.c
===================================================================
--- trunk/grub2/disk/scsi.c	2009-02-27 21:19:00 UTC (rev 2005)
+++ trunk/grub2/disk/scsi.c	2009-02-27 21:27:01 UTC (rev 2006)
@@ -312,7 +312,8 @@
   grub_scsi_t scsi;
 
   scsi = disk->data;
-  return scsi->dev->close (scsi);
+  scsi->dev->close (scsi);
+  grub_free (scsi);
 }
 
 static grub_err_t
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.