summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
commit7c2a874e50b871d04fbd19501f7b42cff55e5abc (patch)
tree1879cd29182ababb17cde77cee5ce74505db4006 /example.c
parenta383133c4e7b93113cee912f213cf9502d785fa7 (diff)
zlib 1.2.0
Diffstat (limited to 'example.c')
-rw-r--r--example.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/example.c b/example.c
index e7e3673..8820e56 100644
--- a/example.c
+++ b/example.c
@@ -1,5 +1,5 @@
/* example.c -- usage example of the zlib compression library
- * Copyright (C) 1995-2002 Jean-loup Gailly.
+ * Copyright (C) 1995-2003 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -551,6 +551,9 @@ int main(argc, argv)
test_dict_deflate(compr, comprLen);
test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
+ free(compr);
+ free(uncompr);
+
exit(0);
return 0; /* to avoid warning */
}