FreeRDP versions before 3.32.0 have a double-free vulnerability in the function nsc_context_initialize_encode(). This flaw occurs after a partial buffer growth failure, leaving dangling plane pointers. An attacker using a specially crafted RDP client can negotiate NSCodec with a large desktop geometry to trigger an allocation failure, causing the server to crash during context teardown. The vulnerability has a CVSS score of 5.9 and is classified as high severity due to its potential to cause denial of service.