diff options
author | Taylor Yu <catalyst@torproject.org> | 2017-05-03 07:55:20 -0400 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2017-05-03 08:59:29 -0400 |
commit | 7b64f1773d144bf38ac293d3300dcbc9ac2c445f (patch) | |
tree | 6a3329d860d228bab3119454c546f4d2015f3b52 /src/or/consdiff.h | |
parent | e0b1fd4d3da05701c0970dabd93010d6c7550d43 (diff) | |
download | tor-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