freerdp: patch valgrind leaks, cleanup