aboutsummaryrefslogtreecommitdiff
path: root/examples/zran.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2025-05-16 10:21:11 -0700
committerMark Adler <git@madler.net>2025-12-06 17:39:44 -0800
commitd0fc110cc31a30132bf878a86cf530e83d34d974 (patch)
treedb629fd39df7b7e7994795147b04f6bf5cdeaa6d /examples/zran.h
parenta2b61271a362d4881b9f67fb92455f4fbbab06df (diff)
downloadzlib-d0fc110cc31a30132bf878a86cf530e83d34d974.tar.gz
zlib-d0fc110cc31a30132bf878a86cf530e83d34d974.tar.bz2
zlib-d0fc110cc31a30132bf878a86cf530e83d34d974.zip
Remove redundant frees of point list on error in examples/zran.c.
Also clean out the point list contents when freed, even though the structure itself is freed, in case someone tries to free it again.
Diffstat (limited to 'examples/zran.h')
-rw-r--r--examples/zran.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/zran.h b/examples/zran.h
index 5c6e643a..16a84feb 100644
--- a/examples/zran.h
+++ b/examples/zran.h
@@ -1,7 +1,7 @@
1/* zran.h -- example of deflated stream indexing and random access 1/* zran.h -- example of deflate stream indexing and random access
2 * Copyright (C) 2005, 2012, 2018, 2023, 2024 Mark Adler 2 * Copyright (C) 2005, 2012, 2018, 2023, 2024, 2025 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 * Version 1.5 4 Feb 2024 Mark Adler */ 4 * Version 1.7 16 May 2025 Mark Adler */
5 5
6#include <stdio.h> 6#include <stdio.h>
7#include "zlib.h" 7#include "zlib.h"