core: fix double close on fp.

Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
This commit is contained in:
Zhang Zhaolong 2015-03-13 11:21:12 +08:00
parent c2ddb08437
commit 93ae1d997b

View File

@ -688,6 +688,7 @@ rdpRsaKey* key_new(const char* keyfile)
fread((void*) buffer, length, 1, fp);
fclose(fp);
fp = NULL;
bio = BIO_new_mem_buf((void*) buffer, length);