summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2019-04-13 16:55:36 +0200
committerNick Mathewson <nickm@torproject.org>2019-04-15 14:51:36 -0400
commit670d0f9f5bb7d73ad236a035ed7bd69e96cadd41 (patch)
tree5d4f87fb1c73b6ffce1afaf42efc4296339bdfc2 /src/test
parent5a0c8579964aa1d27dd9be35afda5e7226c31fb4 (diff)
downloadtor-670d0f9f5bb7d73ad236a035ed7bd69e96cadd41.tar.gz
tor-670d0f9f5bb7d73ad236a035ed7bd69e96cadd41.zip
Clear memory in smartlist_remove_keeporder.
The smartlist functions take great care to reset unused pointers inside the smartlist memory to NULL. The function smartlist_remove_keeporder does not clear memory in such way when elements have been removed. Therefore call memset after the for-loop that removes elements. If no element is removed, it is effectively a no-op. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions