Example: Using the Function Clean Up Area to Release Memory
This example shows how to release memory in the function clean up area:
lpdsF4301 = (LPF4301)jdeAlloc( COMMON_POOL, sizeof(F4301),MEM_ZEROINIT ) ; /**************************************************************** * Function Clean Up Section ****************************************************************/ if (lpdsF4301 != (LPF4301 ) NULL) { jdeFree( lpdsF4301 ); } if (hRequestF4301 != (HREQUEST) NULL) { JDB_CloseTable( hRequestF4301 ); } JDB_FreeBhvr( hUser ); return ( idReturnValue ) ;