diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-11 15:20:20 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-11 15:20:20 -0500 |
commit | 52263b0dda85632ea1deb0f05a83a39d4876f3ab (patch) | |
tree | ae54f15700896adda86bce5cb4170b14f7615ecd /src/test/test_replay.c | |
parent | 96b1bd4fb8e64503c5038a764ece46d950917f07 (diff) | |
download | tor-52263b0dda85632ea1deb0f05a83a39d4876f3ab.tar.gz tor-52263b0dda85632ea1deb0f05a83a39d4876f3ab.zip |
Fix even more dead code and resource leaks in the unit tests
Found by coverity
Diffstat (limited to 'src/test/test_replay.c')
-rw-r--r-- | src/test/test_replay.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/test_replay.c b/src/test/test_replay.c index be48df177e..de841ad594 100644 --- a/src/test/test_replay.c +++ b/src/test/test_replay.c @@ -24,7 +24,6 @@ test_replaycache_alloc(void) r = replaycache_new(600, 300); test_assert(r != NULL); - if (!r) goto done; done: if (r) replaycache_free(r); @@ -40,7 +39,6 @@ test_replaycache_miss(void) r = replaycache_new(600, 300); test_assert(r != NULL); - if (!r) goto done; result = replaycache_add_and_test_internal(1200, r, test_buffer, @@ -61,7 +59,6 @@ test_replaycache_hit(void) r = replaycache_new(600, 300); test_assert(r != NULL); - if (!r) goto done; result = replaycache_add_and_test_internal(1200, r, test_buffer, @@ -87,7 +84,6 @@ test_replaycache_age(void) r = replaycache_new(600, 300); test_assert(r != NULL); - if (!r) goto done; result = replaycache_add_and_test_internal(1200, r, test_buffer, @@ -119,7 +115,6 @@ test_replaycache_elapsed(void) r = replaycache_new(600, 300); test_assert(r != NULL); - if (!r) goto done; result = replaycache_add_and_test_internal(1200, r, test_buffer, @@ -146,7 +141,6 @@ test_replaycache_noexpire(void) r = replaycache_new(0, 0); test_assert(r != NULL); - if (!r) goto done; result = replaycache_add_and_test_internal(1200, r, test_buffer, |