add SM2 default ID, fixed the SM2_do_encrypt() memory leak

This commit is contained in:
Zhi Guan
2016-04-10 01:42:54 +02:00
parent 70118dbcae
commit 37ac6cd45a
7 changed files with 10 additions and 98 deletions

View File

@@ -417,6 +417,7 @@ end:
cv = NULL;
}
if (point) EC_POINT_free(point);
if (n) BN_free(n);
if (h) BN_free(h);
if (k) BN_free(k);