[SCM] Samba Shared Repository - branch master updated
Jelmer Vernooij
jelmer at samba.org
Mon Mar 22 16:23:02 MDT 2010
Hi Matthias,
On 03/22/10 22:31, Matthias Dieter Wallnöfer wrote:
> diff --git a/source4/lib/registry/hive.c b/source4/lib/registry/hive.c
> index 8bf7c9f..c9cb247 100644
> --- a/source4/lib/registry/hive.c
> +++ b/source4/lib/registry/hive.c
> @@ -91,9 +91,10 @@ _PUBLIC_ WERROR hive_key_add_name(TALLOC_CTX *ctx,
> desc, key);
> }
>
> -_PUBLIC_ WERROR hive_key_del(const struct hive_key *key, const char *name)
> +_PUBLIC_ WERROR hive_key_del(TALLOC_CTX *mem_ctx, const struct hive_key *key,
> + const char *name)
> {
> - return key->ops->del_key(key, name);
> + return key->ops->del_key(mem_ctx, key, name);
> }
>
^^^ Why does this need a memory context? The function isn't returning
allocated memory in any way.
Cheers,
Jelmer
More information about the samba-cvs
mailing list