fix newly introduced memleak in handle_execute_for_all