From: Wenkai Lin linwenkai6@hisilicon.com
config ctx_config should not be set if init failed.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com --- wd_util.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/wd_util.c b/wd_util.c index 99be973..76548c9 100644 --- a/wd_util.c +++ b/wd_util.c @@ -1212,6 +1212,7 @@ err_free_ctxs: free(ctx_config->ctxs); err_free_ctx_config: free(ctx_config); + config->ctx_config = NULL; return ret; }