Skip to content

Commit

Permalink
explicitly cleanup external library facilities
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-ape committed Apr 2, 2019
1 parent c8ce31a commit 376f031
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/plugins/elasticsearch/elasticsearch_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class elasticsearch_plugin_impl

elasticsearch_plugin_impl::~elasticsearch_plugin_impl()
{
if (curl) {
curl_easy_cleanup(curl);
curl = nullptr;
}
return;
}

Expand Down
4 changes: 4 additions & 0 deletions libraries/plugins/es_objects/es_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,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;
}

Expand Down

0 comments on commit 376f031

Please sign in to comment.