Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/lib/SoftHSM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
#include <unistd.h>
#endif

int objects_deleted = 0;

// Initialise the one-and-only instance

#ifdef HAVE_CXX11
Expand Down Expand Up @@ -406,6 +408,8 @@ void SoftHSM::reset()
{
if (instance.get())
instance.reset();

objects_deleted = 0;
}

// Constructor
Expand Down Expand Up @@ -445,6 +449,7 @@ SoftHSM::~SoftHSM()

isInitialised = false;

objects_deleted = 1;
resetMutexFactoryCallbacks();
}

Expand Down
Loading
Loading