1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

ldb_del_value: Free key data also when removing the default attribute

This commit is contained in:
Matthias Dieter Wallnöfer 2008-09-12 16:31:57 +02:00 committed by Jelmer Vernooij
parent d7be73eea2
commit 1938cb1e83

View File

@ -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;
}