Permalink
Browse files

Merge pull request #806 from s-ludwig/patch-1

Fix for issue 8694, (Un)Compress may cause an InvalidMemoryOperationError
  • Loading branch information...
2 parents d948034 + a842718 commit b05b81859610e31b679de6e8cc2001fc14fe5af5 @andralex andralex committed Sep 28, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 std/zlib.d
View
@@ -298,9 +298,7 @@ class Compress
if (inited)
{
inited = 0;
- err = deflateEnd(&zs);
- if (err)
- error(err);
+ deflateEnd(&zs);
}
}
@@ -458,9 +456,7 @@ class UnCompress
if (inited)
{
inited = 0;
- err = inflateEnd(&zs);
- if (err)
- error(err);
+ inflateEnd(&zs);
}
done = 1;
}

0 comments on commit b05b818

Please sign in to comment.