diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,8 @@
+# Version 0.4.2.1
+
+* Fix “Codec.Compression.Zlib: premature end of compressed stream” (#13)
+
+
 # Version 0.4.2
 
 * Added the `Pipes/GZip.hs` file that was missing in 0.4.1.
diff --git a/pipes-zlib.cabal b/pipes-zlib.cabal
--- a/pipes-zlib.cabal
+++ b/pipes-zlib.cabal
@@ -1,5 +1,5 @@
 name:               pipes-zlib
-version:            0.4.2
+version:            0.4.2.1
 license:            BSD3
 license-file:       LICENSE
 Copyright:          Copyright (c) Paolo Capriotti 2012,
diff --git a/src/Pipes/Zlib.hs b/src/Pipes/Zlib.hs
--- a/src/Pipes/Zlib.hs
+++ b/src/Pipes/Zlib.hs
@@ -67,10 +67,7 @@
     r <- for p0 $ \bs -> do
        popper <- liftIO (Z.feedDeflate def bs)
        fromPopper popper
-    mbs <- liftIO $ Z.finishDeflate def
-    case mbs of
-       Just bs -> yield bs
-       Nothing -> return ()
+    fromPopper $ Z.finishDeflate def
     return r
 {-# INLINABLE compress #-}
 
