diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index 7469afd9..a876f226 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -172,6 +172,7 @@ sodium_mlock(void * const addr, const size_t len) int sodium_munlock(void * const addr, const size_t len) { + sodium_memzero(addr, len); #ifdef HAVE_MLOCK return munlock(addr, len); #elif defined(HAVE_VIRTUALLOCK)