Collapse All
Parallels C API Reference Guide
PrlBuffer_Free Function
PrlApi.h PrlBuffer

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

Syntax
PRL_RESULT PrlBuffer_Free(
    PRL_VOID_PTR buffer
);
File
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 © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!