Fix assertion failure on SIGINT

nix: src/libutil/compression.cc:142: virtual nix::XzSink::~XzSink(): Assertion `finished' failed.
This commit is contained in:
Eelco Dolstra 2017-03-14 13:13:29 +01:00
parent fbbc4d8dda
commit 2691498b5c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -146,7 +146,6 @@ struct XzSink : CompressionSink
~XzSink() ~XzSink()
{ {
assert(finished);
lzma_end(&strm); lzma_end(&strm);
} }
@ -217,7 +216,6 @@ struct BzipSink : CompressionSink
~BzipSink() ~BzipSink()
{ {
assert(finished);
BZ2_bzCompressEnd(&strm); BZ2_bzCompressEnd(&strm);
} }