projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
185bea1
)
mpbarrett: Fix memory leak in early exit from mpbarrett_reduce.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 20 Feb 2007 00:08:55 +0000
(
00:08
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 21 Feb 2007 12:37:38 +0000
(12:37 +0000)
If we exit in the first stage, we leaked q. This isn't tested, because
I couldn't contrive a test case for it.
mpbarrett.c
patch
|
blob
|
blame
|
history
diff --git
a/mpbarrett.c
b/mpbarrett.c
index
8b0ee88
..
651932a
100644
(file)
--- a/
mpbarrett.c
+++ b/
mpbarrett.c
@@
-119,6
+119,7
@@
mp *mpbarrett_reduce(mpbarrett *mb, mp *d, mp *m)
m = MP_COPY(m);
if (d)
MP_DROP(d);
+ MP_DROP(q);
return (m);
}
}