op_prg_pmo_dealloc()
Abstract
Deallocates a pooled memory object.
Note: This KP is a macro call included for backward compatibility only. Use prg_pmo_dealloc() in new code.
Syntax
op_prg_pmo_dealloc (ptr)
| Argument | Type | Description |
|---|---|---|
ptr |
void * |
Pointer to the pooled memory object to deallocate. |
Return Type
void
No return value.
Example
/* Allocate a new structure to buffer a data packet. */
dp_ptr = (X25T_Data_Packet*) op_prg_pmo_alloc (dp_pmh);
. . .
op_prg_pmo_dealloc (dp_ptr);
Details
None.
Purpose
Provides a means to deallocate pooled memory. This is slightly more efficient than a call to op_prg_mem_free() because no type checking is needed.
Errors
- Program Abort: Segmentation violation (due to an invalid
ptrargument).
Reference
- Use the KP op_prg_pmo_alloc() to allocate a pooled memory object