Releases the memory used by the keychain attribute list and the keychain data retrieved in a call to the Sec
function.
SDK
- macOS 10.2+
Framework
- Security
Declaration
OSStatus SecKeychainItemFreeContent(Sec Keychain Attribute List *attrList, void *data);
Parameters
attrList
A pointer to the attribute list to release. Pass
NULL
if there is no attribute list to release.data
A pointer to the data buffer to release. Pass
NULL
if there is no data to release.
Return Value
A result code. See Security Framework Result Codes.
Discussion
Because the Sec
and Sec
functions call the Sec
function, you must call Sec
to release the data buffers after calls to those functions as well.
Because the Sec
function does not allocate buffers until they are needed, you should not call the Sec
function unless data is actually returned to you.