From 1938cb1e834499aa6e6c8290861dbd233184156a Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 12 Sep 2008 16:31:57 +0200 Subject: ldb_del_value: Free key data also when removing the default attribute --- source4/lib/registry/ldb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 2eb4e9e3ce..e4037b1d90 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -545,12 +545,12 @@ static WERROR ldb_del_value (struct hive_key *key, const char *child) DEBUG(1, ("ldb_del_value: %s\n", ldb_errstring(kd->ldb))); return WERR_FOOBAR; } - - /* reset cache */ - talloc_free(kd->values); - kd->values = NULL; } + /* reset cache */ + talloc_free(kd->values); + kd->values = NULL; + return WERR_OK; } -- cgit