1Tspi_Context_FreeMemory(3) Library Functions Manual Tspi_Context_FreeMemory(3)
2
3
4
5                   TCG Software Stack Developers Reference
6

NAME

8       Tspi_Context_FreeMemory - Free allocated memory for a given context.
9

SYNOPSIS

11       #include <tss/platform.h>
12       #include <tss/tcpa_defines.h>
13       #include <tss/tcpa_typedef.h>
14       #include <tss/tcpa_struct.h>
15       #include <tss/tss_typedef.h>
16       #include <tss/tss_structs.h>
17       #include <tss/tspi.h>
18
19       TSS_RESULT Tspi_Context_FreeMemory(TSS_HCONTEXT hContext, BYTE* rgbMemory);
20
21
22

DESCRIPTION

24       Tspi_Context_FreeMemory  frees  memory  allocated  by  the  TSS Service
25       Provider on a per-context basis.  This should be used before  Tspi_Con‐
26       text_Close is called, to avoid memory leaks.
27
28

PARAMETERS

30   hContext
31       The hContext parameter is the handle to the local context.
32
33   rgbMemory
34       The  rgbMemory  parameter is a pointer to the memory block to be freed.
35       If this is NULL, all memory blocks bound to the context are freed.
36
37

RETURN CODES

39       Tspi_Context_FreeMemory returns TSS_SUCCESS on success,  otherwise  one
40       of the following values is returned:
41
42       TSS_E_INVALID_HANDLE
43              hContext is not a valid handle.
44
45
46       TSS_E_INTERNAL_ERROR
47              An internal SW error has been detected.
48
49

CONFORMING TO

51       Tspi_Context_FreeMemory  conforms  to the Trusted Computing Group Soft‐
52       ware Specification version 1.1 Golden
53
54

SEE ALSO

56       Tspi_Context_Create(3), Tspi_Context_Close(3).
57
58
59
60
61TSS 1.1                           2004-05-25        Tspi_Context_FreeMemory(3)
Impressum