core/dynamo.c
/* Called from another stack to finish cleaning up a thread.
 * The final steps are to free the stack and perform the exit hook.
 */
Called from another stack to finish cleaning up a thread.
The final steps are to free the stack and perform the exit hook.
Called from another stack to finish cleaning up a thread . The final steps are to free the stack and perform the exit hook .
void
dynamo_thread_stack_free_and_exit(byte *stack)
{
    if (stack != NULL) {
        stack_free(stack, DYNAMORIO_STACK_SIZE);
        EXITING_DR();
    }
}
void dynamo_thread_stack_free_and_exit ( byte * stack ) { if ( stack != NULL ) { stack_free ( stack , DYNAMORIO_STACK_SIZE ) ; EXITING_DR ( ) ; } }
Called from another stack to finish cleaning up a thread.
Called from another stack to finish cleaning up a thread .
/* ASSUMPTION: if stack is NULL here, the exit was done earlier
         * (fixes case 6967)
         */