tfe stream destroy未释放plugin ctx;cJSON结构体错误的使用cjsonfree释放,正确做法是cjson delete。
This commit is contained in:
@@ -345,11 +345,11 @@ static struct keyring_private* get_keyring_from_response(const char* data)
|
||||
X509_free(cert);
|
||||
EVP_PKEY_free(key);
|
||||
sk_X509_pop_free(chain, X509_free);
|
||||
cJSON_free(data_json);
|
||||
cJSON_Delete(data_json);
|
||||
return _kyr;
|
||||
|
||||
error_out:
|
||||
if(data_json!=NULL) cJSON_free(data_json);
|
||||
if(data_json!=NULL) cJSON_Delete(data_json);
|
||||
if(cert) X509_free(cert);
|
||||
if(key) EVP_PKEY_free(key);
|
||||
if(chain) sk_X509_pop_free(chain, X509_free);
|
||||
|
||||
Reference in New Issue
Block a user