Fixed close for socket to properly release the socket context structure and the handle.
Signed-off-by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13802 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1187,6 +1187,28 @@ EslSocketCopyFragmentedBuffer (
|
||||
OUT size_t * pDataLength
|
||||
);
|
||||
|
||||
/**
|
||||
Free the socket.
|
||||
|
||||
This routine frees the socket structure and handle resources.
|
||||
|
||||
The ::close routine calls EslServiceFreeProtocol which then calls
|
||||
this routine to free the socket context structure and close the
|
||||
handle.
|
||||
|
||||
@param [in] pSocketProtocol Address of an ::EFI_SOCKET_PROTOCOL structure.
|
||||
|
||||
@param [out] pErrno Address to receive the errno value upon completion.
|
||||
|
||||
@retval EFI_SUCCESS The socket resources were returned successfully.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EslSocketFree (
|
||||
IN EFI_SOCKET_PROTOCOL * pSocketProtocol,
|
||||
IN int * pErrno
|
||||
);
|
||||
|
||||
/**
|
||||
Free the ESL_IO_MGMT event and structure
|
||||
|
||||
|
Reference in New Issue
Block a user