diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 0493943117..9e72d84ddc 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,7 @@ +2019-07-13 Nick Alcock + + * ctf-create.c (ctf_compress_write): Fix double-free. + 2019-07-13 Nick Alcock * ctf-archive.c (ctf_arc_write): Split off, and reimplement in terms diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c index 09cd8d57a5..d75de916ea 100644 --- a/libctf/ctf-create.c +++ b/libctf/ctf-create.c @@ -1997,7 +1997,6 @@ ctf_compress_write (ctf_file_t *fp, int fd) { ctf_dprintf ("zlib deflate err: %s\n", zError (rc)); err = ctf_set_errno (fp, ECTF_COMPRESS); - ctf_free (buf); goto ret; }