Author: hpoussin Date: Sun Sep 6 16:21:00 2009 New Revision: 43002
URL: http://svn.reactos.org/svn/reactos?rev=43002&view=rev Log: Do not leak device descriptors in case of error
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fs.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fs.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/fs/fs.... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/fs/fs.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/fs/fs.c [iso-8859-1] Sun Sep 6 16:21:00 2009 @@ -332,6 +332,7 @@ if (!FileData[DeviceId].FileFuncTable) { /* Error, unable to detect file system */ + pDevice->FuncTable->Close(DeviceId); FileData[DeviceId].FuncTable = NULL; return ENODEV; }