target: remove handle_profile_command memory leak