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 ptr argument).

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com