]> git.ipfire.org Git - thirdparty/tor.git/commit
Assert that memory held by rephist is freed
authorcypherpunks <cypherpunks@torproject.org>
Wed, 2 Dec 2015 09:11:32 +0000 (10:11 +0100)
committerNick Mathewson <nickm@torproject.org>
Wed, 9 Dec 2015 16:31:17 +0000 (11:31 -0500)
commit91ab2ac5aa3a94ebe3d53e9dc2b5cb0ee2b59b3c
treed25026f0421fed00f32e27d76defc3be960fa7a9
parentb3eba8ef12c714e1b97b9026da96d27433064a1e
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.
changes/bug17753 [new file with mode: 0644]
src/or/rephist.c