summaryrefslogtreecommitdiff
path: root/src/or/consdiff.h
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2017-05-03 07:55:20 -0400
committerTaylor Yu <catalyst@torproject.org>2017-05-03 08:59:29 -0400
commit7b64f1773d144bf38ac293d3300dcbc9ac2c445f (patch)
tree6a3329d860d228bab3119454c546f4d2015f3b52 /src/or/consdiff.h
parente0b1fd4d3da05701c0970dabd93010d6c7550d43 (diff)
downloadtor-7b64f1773d144bf38ac293d3300dcbc9ac2c445f.tar.gz
tor-7b64f1773d144bf38ac293d3300dcbc9ac2c445f.zip
Fix memory management for #22103 tests
Code movement in the commit introducings tests for #22103 uncovered a latent memory management bug. Refactor the log message checking from test_options_checkmsgs() into a helper test_options_checklog(). This avoids a memory leak (and possible double-free) in a test failure condition. Don't reuse variables (especially pointers to allocated memory!) for multiple unrelated purposes. Fixes CID 1405778.
Diffstat (limited to 'src/or/consdiff.h')
0 files changed, 0 insertions, 0 deletions