From 55ce9e1fa9fb9641200e9b86ad1142dd9cdf4262 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Mon, 7 May 2012 15:44:21 +0200 Subject: [PATCH] s3:registry: fix possible double free in import Signed-off-by: Michael Adam --- source3/registry/reg_import.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/registry/reg_import.c b/source3/registry/reg_import.c index ce3cd9729fd..5f99b07329e 100644 --- a/source3/registry/reg_import.c +++ b/source3/registry/reg_import.c @@ -75,6 +75,7 @@ int reg_parse_callback_key(struct reg_import* p, if (p->open_key != NULL ) { werr = p->call.closekey(p->call.data, p->open_key); + p->open_key = NULL; if (!W_ERROR_IS_OK(werr)) { DEBUG(0, ("closekey failed: %s\n", win_errstr(werr))); } -- 2.11.4.GIT