libctf: fix refcount leak in ctf_import
authorNick Alcock <nick.alcock@oracle.com>
Tue, 17 Sep 2019 05:59:31 +0000 (06:59 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 3 Oct 2019 16:04:56 +0000 (17:04 +0100)
commitad613f1d0693e02bdc86047c479315d5f969e2f7
tree196de458dea5edb503823acc749d1e9b635c3a68
parent9323dd869dfe481d46512c7f9b1a30d0b7d2d7c4
libctf: fix refcount leak in ctf_import

Calling ctf_import (fp, NULL) to cancel out a pre-existing import leaked
the refcnt increment on the parent, so it could never be freed.

New in v4.

libctf/
* ctf-open.c (ctf_import): Do not leak a ctf_file_t ref on every
ctf_import after the first for a given file.
libctf/ChangeLog
libctf/ctf-open.c
This page took 0.023876 seconds and 4 git commands to generate.