From a676209deb2ce5d0c98f331659de25e2483f8c4c Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Tue, 10 Nov 2020 23:31:51 +0000 Subject: 13252 ctf_update()/ctf_dwarf_convert_function() leak memory Reviewed by: Robert Mustacchi Approved by: Dan McDonald --- usr/src/common/ctf/ctf_impl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr/src/common/ctf/ctf_impl.h') diff --git a/usr/src/common/ctf/ctf_impl.h b/usr/src/common/ctf/ctf_impl.h index 7064abad15..d4ab96c4de 100644 --- a/usr/src/common/ctf/ctf_impl.h +++ b/usr/src/common/ctf/ctf_impl.h @@ -26,6 +26,7 @@ */ /* * Copyright 2020 Joyent, Inc. + * Copyright 2020 OmniOS Community Edition (OmniOSce) Association. */ #ifndef _CTF_IMPL_H @@ -248,6 +249,11 @@ struct ctf_file { #define LCTF_CHILD 0x0002 /* CTF container is a child */ #define LCTF_RDWR 0x0004 /* CTF container is writable */ #define LCTF_DIRTY 0x0008 /* CTF container has been modified */ +/* + * The storage for this CTF container was allocated via ctf_data_alloc() + * and libctf should free it with ctf_data_free() on close. + */ +#define LCTF_FREE 0x0010 #define CTF_ELF_SCN_NAME ".SUNW_ctf" -- cgit v1.2.3