[PATCH] mscoree: Initialize parsed_config_file private_path.
Rémi Bernon
rbernon at codeweavers.com
Thu Apr 22 14:06:16 CDT 2021
In case of error we may free uninitialized pointer otherwise.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
The free happens in free_parsed_config_file, which is called
unconditionnally after parse_config_file / parsed_config_stream.
dlls/mscoree/config.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/mscoree/config.c b/dlls/mscoree/config.c
index 38f304f3df8..b6aa647d876 100644
--- a/dlls/mscoree/config.c
+++ b/dlls/mscoree/config.c
@@ -617,6 +617,7 @@ static const struct ISAXErrorHandlerVtbl ConfigFileHandlerErrorVtbl =
static void init_config(parsed_config_file *config)
{
list_init(&config->supported_runtimes);
+ config->private_path = NULL;
}
static HRESULT parse_config(VARIANT input, parsed_config_file *result)
--
2.31.0
More information about the wine-devel
mailing list