aboutsummaryrefslogtreecommitdiffstats
path: root/src/pbe/pbes2/pbes2.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-12 19:53:19 +0000
committerlloyd <[email protected]>2008-11-12 19:53:19 +0000
commita558bd6f93f316fcee5f410b10fa890447ed78a6 (patch)
treed72e5e1b0927ecfd61b980e486dbf98e2e38895f /src/pbe/pbes2/pbes2.cpp
parent5f0aec7df70287f33001db4b59f63ad0904206bb (diff)
Fix memory leaks in PBE_PKCS5v20 and get_pbe
Diffstat (limited to 'src/pbe/pbes2/pbes2.cpp')
-rw-r--r--src/pbe/pbes2/pbes2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pbe/pbes2/pbes2.cpp b/src/pbe/pbes2/pbes2.cpp
index 3935bd702..e4d11eda5 100644
--- a/src/pbe/pbes2/pbes2.cpp
+++ b/src/pbe/pbes2/pbes2.cpp
@@ -228,4 +228,10 @@ PBE_PKCS5v20::PBE_PKCS5v20(DataSource& params) : direction(DECRYPTION)
decode_params(params);
}
+PBE_PKCS5v20::~PBE_PKCS5v20()
+ {
+ delete hash_function;
+ delete block_cipher;
+ }
+
}