Home

Traffic Server Software Developers Kit

Handle Release Functions

INKHandleMLocRelease

Releases INKMLoc handles.

Prototype

INKReturnCode INKHandleMLocRelease (INKMBuffer bufp, INKMLoc parent, INKMLoc mloc)

Arguments

bufp is the marshal buffer containing the INKMLoc to be released.

parent is the location of the parent object from which the handle was created.

mloc is the INKMLoc to be released.

Description

Releases the INKMLoc mloc created from the INKMLoc parent. If there is no parent INKMLoc, then use INK_NULL_MLOC. See Release Marshal Buffer Handle for details about parent INKMLocs and the use of the null parent.

Returns

INK_SUCCESS if the handle is successfully released.

INK_ERROR if the hook is not added.

INKHandleStringRelease

Releases string handles.

Prototype

InkReturnCode INKHandleStringRelease (INKMBuffer bufp, INKMLoc parent, const char *str)

Arguments

bufp is the marshal buffer containing the string to be released.

parent is the location of the parent object from which the handle was created.

str is the string to be released.

Description

Releases the string str created from the INKMLoc parent. Do not use INKHandleStringRelease for strings created by INKUrlStringGet (in that special case, use INKfree).

Returns

INK_SUCCESS if the string handle is successfully released.

INK_ERROR if the hook is not added.