summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2008-09-12 16:31:57 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-21 14:40:40 +0200
commit1938cb1e834499aa6e6c8290861dbd233184156a (patch)
tree0dcc75784362471bdd829be987fd9cd2fce2fa85 /source4/lib
parentd7be73eea2c8a55b3dbe95c9c576701e4b1c7f7d (diff)
downloadsamba-1938cb1e834499aa6e6c8290861dbd233184156a.tar.gz
samba-1938cb1e834499aa6e6c8290861dbd233184156a.tar.bz2
samba-1938cb1e834499aa6e6c8290861dbd233184156a.zip
ldb_del_value: Free key data also when removing the default attribute
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/ldb.c8
1 files changed, 4 insertions, 4 deletions
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;
}