Skip to content

Commit

Permalink
[FOLD] don't leak in test
Browse files Browse the repository at this point in the history
  • Loading branch information
vinniefalco committed Oct 20, 2016
1 parent 5f28f88 commit c427f88
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test/zlib/inflate_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,8 @@ class inflate_stream_test : public beast::unit_test::suite
is.write(zs, Flush::sync, ec);
if(ec == error::no_progress) // per zlib FAQ
goto fin;
#if 0
if(! BEAST_EXPECTS(! ec, ec.message()))
goto err;
#else
if(! BEAST_EXPECT(! ec))
goto err;
#endif
if(zs.avail_in == 0 && ! bi)
{
bi = true;
Expand Down Expand Up @@ -193,7 +188,6 @@ class inflate_stream_test : public beast::unit_test::suite
fin:
out.resize(zs.total_out);
BEAST_EXPECT(out == check);
return;

err:
inflateEnd(&zs);
Expand All @@ -220,13 +214,8 @@ class inflate_stream_test : public beast::unit_test::suite
is.write(zs, Flush::sync, ec);
if(ec == error::no_progress) // per zlib FAQ
goto fin;
#if 0
if(! BEAST_EXPECTS(! ec, ec.message()))
goto err;
#else
if(! BEAST_EXPECTS(! ec, ec.message()))
if(! BEAST_EXPECT(! ec))
goto err;
#endif
progress = false;
}
}
Expand All @@ -244,7 +233,6 @@ class inflate_stream_test : public beast::unit_test::suite
}
BEAST_EXPECT(out == check);
}

err:
;
}
Expand Down

0 comments on commit c427f88

Please sign in to comment.