diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2025-05-16 10:21:11 -0700 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2025-12-06 17:39:44 -0800 |
| commit | d0fc110cc31a30132bf878a86cf530e83d34d974 (patch) | |
| tree | db629fd39df7b7e7994795147b04f6bf5cdeaa6d /examples/zran.h | |
| parent | a2b61271a362d4881b9f67fb92455f4fbbab06df (diff) | |
| download | zlib-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.h | 6 |
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" |
