core: fix memory leak in case of error out.

This commit is contained in:
Zhang Zhaolong 2014-04-26 12:00:07 +08:00
parent dcbf5bd0ed
commit 8ce32773f3

View File

@ -1057,6 +1057,7 @@ void license_send_platform_challenge_response_packet(rdpLicense* license)
if (!rc4)
{
fprintf(stderr, "%s: unable to allocate a rc4\n", __FUNCTION__);
free(buffer);
return;
}
crypto_rc4(rc4, HWID_LENGTH, license->HardwareId, buffer);