libctf, link: fix ctf_link_write fd leak
authorNick Alcock <nick.alcock@oracle.com>
Thu, 4 Jun 2020 18:49:36 +0000 (19:49 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 17:02:18 +0000 (18:02 +0100)
commite3f17159e26fc9b10625725e4d544693741cddb8
treec6420da5dccab491b167074ded3cb02eed7b83d5
parent8d2229ad1e779fbdecfe1d68c02706d075eb81c6
libctf, link: fix ctf_link_write fd leak

We were leaking the fd on every invocation.

libctf/
* ctf-link.c (ctf_link_write): Close the fd.
libctf/ChangeLog
libctf/ctf-link.c