diff options
author | David Goulet <dgoulet@torproject.org> | 2016-12-08 11:46:52 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-09 08:30:46 -0500 |
commit | 9bb3bcbc414f8845d025e6bf74ffdf6be96a5ebe (patch) | |
tree | ba743b0f367ce33959dee79a3ea05df74ea9402c /changes | |
parent | f9636ebc2f70544f8b86eb7e3a86a85c81349f8e (diff) | |
download | tor-9bb3bcbc414f8845d025e6bf74ffdf6be96a5ebe.tar.gz tor-9bb3bcbc414f8845d025e6bf74ffdf6be96a5ebe.zip |
router: Fix memory leak in signed_descriptor_move()
The signed_descriptor_move() was not releasing memory inside the destination
object before overwriting it with the source object. This commit adds a reset
function that free that memory inside a signed descriptor object and zero it.
Closes #20715.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug20715 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug20715 b/changes/bug20715 new file mode 100644 index 0000000000..737a560cec --- /dev/null +++ b/changes/bug20715 @@ -0,0 +1,4 @@ + o Minor bugfixes (memory leak) + - When moving a signed descriptor object from a source to an existing + destination, free the allocated memory inside that destination object. + Bugfix on tor-0.2.8.3-alpha; Closes #20715. |