summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/package.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-01-07 14:23:58 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-01-07 14:23:58 +0100
commit269fbcadbaf62aed724f6c39b7c42ed0060db0ed (patch)
treed44ce57001fef2f4bf0b9b893950fb3b2bc35fc7 /crawl-ref/source/package.cc
parentd78b096eb75fff2fc7dcaa00d09d18360d8fc3b8 (diff)
downloadcrawl-ref-269fbcadbaf62aed724f6c39b7c42ed0060db0ed.tar.gz
crawl-ref-269fbcadbaf62aed724f6c39b7c42ed0060db0ed.zip
Fix an irrelevant memory leak on write errors.
They are currently fatal and I doubt we'll ever bother to handle them (out of disk being the most likely thing we could possibly do).
Diffstat (limited to 'crawl-ref/source/package.cc')
-rw-r--r--crawl-ref/source/package.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/package.cc b/crawl-ref/source/package.cc
index 90dcd9fc98..721a1abe4a 100644
--- a/crawl-ref/source/package.cc
+++ b/crawl-ref/source/package.cc
@@ -590,6 +590,7 @@ chunk_writer::~chunk_writer()
#ifdef USE_ZLIB
// ignore errors, they're not relevant anymore
deflateEnd(&zs);
+ free(z_buffer);
#endif
return;
}