修复内存泄漏问题

This commit is contained in:
崔一鸣
2018-09-14 21:23:08 +08:00
parent 254f3fbbd1
commit e28fd98331
3 changed files with 5 additions and 1 deletions

View File

@@ -180,6 +180,7 @@ static struct keyring* get_keyring_from_response(const char* data)
if(chain_cert)
printf("push to chain\n");
sk_X509_push(chain, chain_cert);
ssl_x509_refcount_inc(chain_cert);
}
struct keyring_private* _kyr= keyring_new();
printf("cert is %s", cert == NULL ? "null" : "not null\n");