Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

LONG SCardFreeMemory ( SCARDCONTEXT  hContext,
LPCVOID  pvMem 
)

Releases memory that has been returned from the resource manager using the SCARD_AUTOALLOCATE length designator.

Parameters:
[in]hContextConnection context to the PC/SC Resource Manager.
[in]pvMempointer to allocated memory
Returns:
Error code.
Return values:
SCARD_S_SUCCESSSuccessful (SCARD_S_SUCCESS)
SCARD_E_INVALID_HANDLEInvalid hContext handle (SCARD_E_INVALID_HANDLE)

Definition at line 2993 of file winscard_clnt.c.

References SCARD_E_INVALID_HANDLE, SCARD_S_SUCCESS, and SCardGetContext().

{
      LONG rv = SCARD_S_SUCCESS;
      SCONTEXTMAP * currentContextMap;

      PROFILE_START

      /*
       * Make sure this context has been opened
       */
      currentContextMap = SCardGetContext(hContext);
      if (NULL == currentContextMap)
            return SCARD_E_INVALID_HANDLE;

      free((void *)pvMem);

      PROFILE_END(rv)

      return rv;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index