chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71080a1
)
cc-kem: Fix memory leak in DH KEMs.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 13 May 2006 10:10:48 +0000
(11:10 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 13 May 2006 10:10:48 +0000
(11:10 +0100)
Just didn't free the context at the end. How strange.
cc-kem.c
patch
|
blob
|
blame
|
history
diff --git
a/cc-kem.c
b/cc-kem.c
index aaa21bd0707307d408b2a3f15e9c1254a8b65b0d..b6908e5d2f22f136c28403cd68a53a04948dd8c1 100644
(file)
--- a/
cc-kem.c
+++ b/
cc-kem.c
@@
-269,6
+269,7
@@
static void dh_encdestroy(kem *k)
G_DESTROY(de->g, de->y);
mp_drop(de->x);
G_DESTROYGROUP(de->g);
+ DESTROY(de);
}
static const kemops dh_encops = {