1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3:registry: don't leak the old contents when updating the value cache

Signed-off-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Michael Adam 2012-04-12 08:18:04 +02:00 committed by Andreas Schneider
parent f4747250ea
commit 04aa303fb1

View File

@ -89,6 +89,7 @@ static WERROR fill_value_cache(struct registry_key *key)
}
}
TALLOC_FREE(key->values);
werr = regval_ctr_init(key, &(key->values));
W_ERROR_NOT_OK_RETURN(werr);