mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-26 07:55:01 +00:00
put calls to gzclose() under ifdef COMPRESS_USER_CORES to prevent
undefined symbols on kernels without this option. Reported by: Alexander Best
This commit is contained in:
parent
b05934e2cb
commit
8b325009a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204737
@ -1136,11 +1136,11 @@ __elfN(coredump)(struct thread *td, struct vnode *vp, off_t limit, int flags)
|
||||
|
||||
#ifdef COMPRESS_USER_CORES
|
||||
done:
|
||||
#endif
|
||||
if (core_buf)
|
||||
free(core_buf, M_TEMP);
|
||||
if (gzfile)
|
||||
gzclose(gzfile);
|
||||
#endif
|
||||
|
||||
free(hdr, M_TEMP);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user