libdwarf
Loading...
Searching...
No Matches
Generic dwarf_dealloc Function

Functions

DW_API void dwarf_dealloc (Dwarf_Debug dw_dbg, void *dw_space, Dwarf_Unsigned dw_type)
 The generic dealloc (free) function. It requires you know the correct DW_DLA value to pass in, and in a few cases such is not provided. The functions doing allocations tell you which dealloc to use.

Detailed Description

Function Documentation

◆ dwarf_dealloc()

DW_API void dwarf_dealloc ( Dwarf_Debug dw_dbg,
void * dw_space,
Dwarf_Unsigned dw_type )

The generic dealloc (free) function. It requires you know the correct DW_DLA value to pass in, and in a few cases such is not provided. The functions doing allocations tell you which dealloc to use.

Parameters
dw_dbgMust be a valid open Dwarf_Debug. and must be the dw_dbg that the error was created on. If it is not the dealloc will do nothing.
dw_spaceMust be an address returned directly by a libdwarf call that the call specifies as requiring dealloc/free. If it is not a segfault or address fault is possible.
dw_typeMust be a correct naming of the DW_DLA type. If it is not the dealloc will do nothing.