MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / LeaveInternal

Method LeaveInternal

libcppcryptfs/util/KeybufManager.cpp:175–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void KeybufManager::LeaveInternal()
176{
177 lock_guard<mutex> lock(m_mutex);
178
179 assert(m_refcount > 0);
180
181 m_refcount--;
182
183 if (m_refcount > 0)
184 return;
185
186 for (size_t i = 0; i < m_bufs.size(); i++) {
187 SecureZeroMemory(m_bufs[i].ptr, m_bufs[i].len);
188 }
189}

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected