summaryrefslogtreecommitdiff
path: root/changes/bug17753
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-12-02 10:11:32 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-09 11:31:17 -0500
commit91ab2ac5aa3a94ebe3d53e9dc2b5cb0ee2b59b3c (patch)
treed25026f0421fed00f32e27d76defc3be960fa7a9 /changes/bug17753
parentb3eba8ef12c714e1b97b9026da96d27433064a1e (diff)
downloadtor-91ab2ac5aa3a94ebe3d53e9dc2b5cb0ee2b59b3c.tar.gz
tor-91ab2ac5aa3a94ebe3d53e9dc2b5cb0ee2b59b3c.zip
Assert that memory held by rephist is freed
The internal memory allocation and history object counters of the reputation code can be used to verify the correctness of (part of) the code. Using these counters revealed an issue where the memory allocation counter is not decreased when the bandwidth arrays are freed. A new function ensures the memory allocation counter is decreased when a bandwidth array is freed. This commit also removes an unnecessary cast which was found while working on the code.
Diffstat (limited to 'changes/bug17753')
-rw-r--r--changes/bug177534
1 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug17753 b/changes/bug17753
new file mode 100644
index 0000000000..7d227d856c
--- /dev/null
+++ b/changes/bug17753
@@ -0,0 +1,4 @@
+ o Minor bugfixes (code correctness)
+ - Assert that allocated memory held by the reputation code is freed
+ according to its internal counters. Fixes bug 17753; bugfix on
+ tor-0.1.1.1-alpha.