summary refs log tree commit diff stats
path: root/lib/wrappers/zip
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-02-17 02:18:52 +0100
committerdef <dennis@felsin9.de>2015-02-17 02:22:30 +0100
commite686ca252385500e14ce327e2eba1e2ad79c944d (patch)
treec14d70dcc78a68f9741101ce4934af1628a79de0 /lib/wrappers/zip
parent5668ab3a49d5ebfce8952615ead75b0d98a28e2f (diff)
downloadNim-e686ca252385500e14ce327e2eba1e2ad79c944d.tar.gz
Fix a few more warnings
Diffstat (limited to 'lib/wrappers/zip')
-rw-r--r--lib/wrappers/zip/zlib.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wrappers/zip/zlib.nim b/lib/wrappers/zip/zlib.nim
index e3530d566..8bdb47106 100644
--- a/lib/wrappers/zip/zlib.nim
+++ b/lib/wrappers/zip/zlib.nim
@@ -232,7 +232,7 @@ proc uncompress*(sourceBuf: cstring, sourceLen: int): string =
     return
 
   # Make sure memory allocated by inflateInit2() is freed eventually.
-  finally: discard inflateEnd(z)
+  defer: discard inflateEnd(z)
 
   # Decompress all of self.
   while true: