explicitly cleanup external library facilities
This commit is contained in:
parent
f2da1f4a5b
commit
29ed4383b8
2 changed files with 8 additions and 0 deletions
|
|
@ -94,6 +94,10 @@ class elasticsearch_plugin_impl
|
|||
|
||||
elasticsearch_plugin_impl::~elasticsearch_plugin_impl()
|
||||
{
|
||||
if (curl) {
|
||||
curl_easy_cleanup(curl);
|
||||
curl = nullptr;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -216,6 +216,10 @@ void es_objects_plugin_impl::prepareTemplate(T blockchain_object, string index_n
|
|||
|
||||
es_objects_plugin_impl::~es_objects_plugin_impl()
|
||||
{
|
||||
if (curl) {
|
||||
curl_easy_cleanup(curl);
|
||||
curl = nullptr;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue