freerdp: fix possible clog memory corruption