Example: Allocating and Releasing Memory within a Business Function
This example uses jdeAlloc to allocate memory, and then, in the function cleanup section, jdeFree to release memory:
statement
lpdsF4301 = (LPF4301)jdeAlloc( COMMON_POOL,sizeof(F4301),MEM_ZEROINIT ) ;
statement
/**************************************************************
* Function Clean Up Section
**************************************************************/
if (lpdsF4301 != (LPF4301) NULL)
{
jdeFree( lpdsF4301 );
}