From: Michael Adam Date: Mon, 17 Mar 2008 00:09:31 +0000 (+0100) Subject: registry: explicitly use talloc context instead of talloc_tos() X-Git-Tag: samba-3.3.0pre1~3281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93ea27a3e23e489a2af3c778684f8a8a4594b567;p=thirdparty%2Fsamba.git registry: explicitly use talloc context instead of talloc_tos() in regdb_fetch_keys(). Michael --- diff --git a/source/registry/reg_backend_db.c b/source/registry/reg_backend_db.c index 6f8f95e7b58..bac75fae14f 100644 --- a/source/registry/reg_backend_db.c +++ b/source/registry/reg_backend_db.c @@ -652,13 +652,13 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr) DEBUG(11,("regdb_fetch_keys: Enter key => [%s]\n", key ? key : "NULL")); - path = talloc_strdup(talloc_tos(), key); + path = talloc_strdup(frame, key); if (!path) { goto fail; } /* convert to key format */ - path = talloc_string_sub(talloc_tos(), path, "\\", "/"); + path = talloc_string_sub(frame, path, "\\", "/"); if (!path) { goto fail; }