libxrdp: memory leak fixes on error