1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3:registry: fix possible double free in import

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Gregor Beck 2012-05-07 15:44:21 +02:00 committed by Michael Adam
parent 619f0c07ff
commit 55ce9e1fa9

View File

@ -75,6 +75,7 @@ int reg_parse_callback_key(struct reg_import* p,
if (p->open_key != NULL ) { if (p->open_key != NULL ) {
werr = p->call.closekey(p->call.data, p->open_key); werr = p->call.closekey(p->call.data, p->open_key);
p->open_key = NULL;
if (!W_ERROR_IS_OK(werr)) { if (!W_ERROR_IS_OK(werr)) {
DEBUG(0, ("closekey failed: %s\n", win_errstr(werr))); DEBUG(0, ("closekey failed: %s\n", win_errstr(werr)));
} }