Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlBuffer_Free Function
PrlBuffer

Frees a buffer allocated by the Virtuozzo API library and returned to the client.

Syntax
PRL_RESULT PrlBuffer_Free(
    PRL_VOID_PTR buffer
);
File

PrlApiCore.h

Parameters

buffer
A pointer to a buffer to free.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid pointer to the buffer was specified. 

PRL_ERR_SUCCESS - operation completed successfully. 

Remarks

Every time a pointer to a buffer containing the data is returned to the client, it must be freed using this function. Failure to do so will result in memory leaks.

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.