mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
Wrong to remove ExFreePool.
svn path=/trunk/; revision=8941
This commit is contained in:
parent
a7456eb968
commit
f8e193fbc6
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: disk.c,v 1.38 2004/03/31 05:25:36 jimtabor Exp $
|
/* $Id: disk.c,v 1.39 2004/04/01 15:01:35 jimtabor Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -873,6 +873,8 @@ DiskBuildPartitionTable(IN PDEVICE_OBJECT DiskDeviceObject,
|
||||||
/* Drive is not ready. */
|
/* Drive is not ready. */
|
||||||
DPRINT("Drive not ready\n");
|
DPRINT("Drive not ready\n");
|
||||||
DiskData->DriveNotReady = TRUE;
|
DiskData->DriveNotReady = TRUE;
|
||||||
|
if (PartitionList != NULL)
|
||||||
|
ExFreePool(PartitionList);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -909,7 +911,8 @@ DiskBuildPartitionTable(IN PDEVICE_OBJECT DiskDeviceObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT("DiskBuildPartitionTable() done\n");
|
DPRINT("DiskBuildPartitionTable() done\n");
|
||||||
|
if (PartitionList != NULL)
|
||||||
|
ExFreePool(PartitionList);
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue