summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/util/substitute.c2
-rw-r--r--lib/util/util_str.c2
-rw-r--r--source4/libcli/raw/rawfile.c2
3 files changed, 6 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;
}
diff --git a/source4/libcli/raw/rawfile.c b/source4/libcli/raw/rawfile.c
index 8cabac6d04..63de051b33 100644
--- a/source4/libcli/raw/rawfile.c
+++ b/source4/libcli/raw/rawfile.c
@@ -71,6 +71,8 @@ char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib)
ret[len] = 0;
+ talloc_set_name_const(ret, ret);
+
return ret;
}