Allocate a block of memory, and release it properly. But we passed it to some function. That function wanted to keep a copy of the block, so it can apply a hold. It needs to later do a Release again to actually free the memory.
POINTER p = Allocate( 32 );
call_some_function( p );
Release( p );
void call_some_function( POINTER p )
{
staticPOINTER my_p_copy;
my_p_copy = p;
Hold( p );
}
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.