diff options
Diffstat (limited to 'pkey.rs')
| -rw-r--r-- | pkey.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -336,6 +336,14 @@ impl PKey { } } +impl Drop for PKey { + fn drop(&self) { + unsafe { + libcrypto::EVP_PKEY_free(self.evp); + } + } +} + #[cfg(test)] mod tests { use super::*; |