summaryrefslogtreecommitdiff
path: root/usr/src/common/ctf/ctf_util.c
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2020-12-04 11:41:39 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2020-12-17 21:18:56 +0000
commit88a08813800ed7ba7c927986421cee437f7f2233 (patch)
tree5ee2cc36e4a8aa6c6f35f47268f4912f1ab44b08 /usr/src/common/ctf/ctf_util.c
parent3dd4cd56e7843e01a8ab147a0d102cd4f6d732c1 (diff)
downloadillumos-gate-88a08813800ed7ba7c927986421cee437f7f2233.tar.gz
13363 ctfconvert could support more granular ignore for missing debug data
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/common/ctf/ctf_util.c')
-rw-r--r--usr/src/common/ctf/ctf_util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/common/ctf/ctf_util.c b/usr/src/common/ctf/ctf_util.c
index 550195b5e1..f909bbc4af 100644
--- a/usr/src/common/ctf/ctf_util.c
+++ b/usr/src/common/ctf/ctf_util.c
@@ -149,6 +149,17 @@ ctf_strdup(const char *s1)
}
/*
+ * Free a string which was allocated via ctf_alloc()
+ */
+void
+ctf_strfree(char *s)
+{
+ if (s == NULL)
+ return;
+ ctf_free(s, strlen(s) + 1);
+}
+
+/*
* Store the specified error code into errp if it is non-NULL, and then
* return NULL for the benefit of the caller.
*/