diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:49:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:49:02 -0400 |
commit | 3c0a63c40f8f41742bf6a4ab58165e8f25aab34a (patch) | |
tree | 30e043d70c96546c70de2c2f112fbdbc5f669f0a | |
parent | 890bc15ab641f1c22a39b9a86de656a4e3a2d225 (diff) | |
download | tor-3c0a63c40f8f41742bf6a4ab58165e8f25aab34a.tar.gz tor-3c0a63c40f8f41742bf6a4ab58165e8f25aab34a.zip |
Fix a memory error in test_shared_random
Bug not in any released Tor.
-rw-r--r-- | src/test/test_shared_random.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 5f86d783af..6a8c1abaff 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -780,6 +780,7 @@ test_sr_setup_commits(void) /* Now during REVEAL phase save commit D by restoring its reveal. */ set_sr_phase(SR_PHASE_REVEAL); save_commit_to_state(place_holder); + place_holder = NULL; tt_str_op(commit_d->encoded_reveal, OP_EQ, "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); /* Go back to an empty encoded reveal value. */ |