Avoid a (small) memleak
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Jan 11 14:25:04 UTC 2021 on sn-devel-184
}
if (!GUID_all_zero(&b->object)) {
+ struct GUID_txt_buf buf;
+
o = s;
- s = talloc_asprintf_append_buffer(s, "%s@",
- GUID_string(mem_ctx, &b->object));
+ s = talloc_asprintf_append_buffer(
+ s, "%s@", GUID_buf_string(&b->object, &buf));
if (s == NULL) {
talloc_free(o);
return NULL;