Skip to content

Commit 6a7fb63

Browse files
committed
make sure to close gzip stream
1 parent 6423ceb commit 6a7fb63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/meetup/memcached/MemcachedClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ private boolean set( String cmdname, String key, Object value, Date expiry, Inte
798798
GZIPOutputStream gos = new GZIPOutputStream( bos );
799799
gos.write( val, 0, val.length );
800800
gos.finish();
801+
gos.close();
801802

802803
// store it and set compression flag
803804
val = bos.toByteArray();

0 commit comments

Comments
 (0)