mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
3600962 descriptor leaks
This commit is contained in:
parent
bd5ffa4756
commit
37861d60e4
@ -1,9 +1,9 @@
|
||||
/*M*
|
||||
// PVCS:
|
||||
// $Workfile: imbapi.c $
|
||||
// $Revision: 1.2 $
|
||||
// $Revision: 1.3 $
|
||||
// $Modtime: 06 Aug 2001 13:16:56 $
|
||||
// $Author: iceblink $
|
||||
// $Author: ledva $
|
||||
//
|
||||
// Purpose: This file contains the entry point that opens the IMB device in
|
||||
// order to issue the IMB driver API related IOCTLs.
|
||||
@ -39,6 +39,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*----------------------------------------------------------------------*/
|
||||
/*
|
||||
* $Log: imbapi.c,v $
|
||||
* Revision 1.3 2013/01/18 12:46:52 ledva
|
||||
* 3600962 descriptor leaks
|
||||
*
|
||||
* Revision 1.2 2004/08/31 23:52:58 iceblink
|
||||
* fix lots of little errors that show up with -Werror -Wall
|
||||
*
|
||||
@ -270,6 +273,7 @@ int open_imb(void)
|
||||
{
|
||||
printf("%s: SendTimedImbpRequest error. Ret = %d CC = 0x%X\n",
|
||||
__FUNCTION__, my_ret_code, completionCode);
|
||||
close(hDevice1);
|
||||
hDevice1 = 0;
|
||||
return (0);
|
||||
}
|
||||
@ -2016,6 +2020,7 @@ MapPhysicalMemory(int startAddress,int addressLength, int *virtualAddress )
|
||||
#endif /*LINUX_DEBUG_MAX */
|
||||
|
||||
*virtualAddress = (long)(startvAddress + diff);
|
||||
close(fd);
|
||||
return ACCESN_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user