explicitly cleanup external library facilities

This commit is contained in:
crypto-ape 2019-04-02 12:55:25 +02:00 committed by gladcow
parent f2da1f4a5b
commit 29ed4383b8
2 changed files with 8 additions and 0 deletions

View file

@ -94,6 +94,10 @@ class elasticsearch_plugin_impl
elasticsearch_plugin_impl::~elasticsearch_plugin_impl()
{
if (curl) {
curl_easy_cleanup(curl);
curl = nullptr;
}
return;
}

View file

@ -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;
}