diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-01-07 14:23:58 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-01-07 14:23:58 +0100 |
commit | 269fbcadbaf62aed724f6c39b7c42ed0060db0ed (patch) | |
tree | d44ce57001fef2f4bf0b9b893950fb3b2bc35fc7 /crawl-ref/source/package.cc | |
parent | d78b096eb75fff2fc7dcaa00d09d18360d8fc3b8 (diff) | |
download | crawl-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.cc | 1 |
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; } |