[Dispatcher] Fixed three memory leaks