diff options
author | 2022-04-14 10:39:41 +1000 | |
---|---|---|
committer | 2022-04-14 10:39:41 +1000 | |
commit | 6fa1f03bf0aa00885699da44828a68b4881fd64b (patch) | |
tree | 64359def73a4113c2317bf39dfbc73397b712b4d /3rdparty/zlib/examples/gzlog.c | |
parent | 23904ffeebcd91310715045ab39f24390799edf3 (diff) |
3rdparty: Updated zlib to version 1.2.12.
Diffstat (limited to '3rdparty/zlib/examples/gzlog.c')
-rw-r--r-- | 3rdparty/zlib/examples/gzlog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdparty/zlib/examples/gzlog.c b/3rdparty/zlib/examples/gzlog.c index b8c29274e8b..b977802dd6e 100644 --- a/3rdparty/zlib/examples/gzlog.c +++ b/3rdparty/zlib/examples/gzlog.c @@ -1,8 +1,8 @@ /* * gzlog.c - * Copyright (C) 2004, 2008, 2012, 2016 Mark Adler, all rights reserved + * Copyright (C) 2004, 2008, 2012, 2016, 2019 Mark Adler, all rights reserved * For conditions of distribution and use, see copyright notice in gzlog.h - * version 2.2, 14 Aug 2012 + * version 2.3, 25 May 2019 */ /* @@ -756,12 +756,14 @@ local int log_recover(struct log *log, int op) return -2; } if ((fd = open(log->path, O_RDONLY, 0)) < 0) { + free(data); log_log(log, op, ".add file read failure"); return -1; } ret = (size_t)read(fd, data, len) != len; close(fd); if (ret) { + free(data); log_log(log, op, ".add file read failure"); return -1; } |