summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/substitute.c2
-rw-r--r--lib/util/util_str.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/util/substitute.c b/lib/util/substitute.c
index 84514ac714..32945a7213 100644
--- a/lib/util/substitute.c
+++ b/lib/util/substitute.c
@@ -120,6 +120,8 @@ _PUBLIC_ char *string_sub_talloc(TALLOC_CTX *mem_ctx, const char *s,
SMB_ASSERT(ret[len] == '\0');
+ talloc_set_name_const(ret, ret);
+
return ret;
}
diff --git a/lib/util/util_str.c b/lib/util/util_str.c
index 7dcefc90dd..a2c50fd38f 100644
--- a/lib/util/util_str.c
+++ b/lib/util/util_str.c
@@ -153,6 +153,8 @@ _PUBLIC_ const char *str_format_nbt_domain(TALLOC_CTX *mem_ctx, const char *s)
}
}
+ talloc_set_name_const(ret, ret);
+
return ret;
}