aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
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 /configure.ac
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 'configure.ac')
0 files changed, 0 insertions, 0 deletions