FreeRDP: fixed access violation crash that occurred on Windows, because the malloc and the free were performed in different libraries.