diff --git a/core/json.c b/core/json.c index a493fafc..a30e18f6 100644 --- a/core/json.c +++ b/core/json.c @@ -106,6 +106,8 @@ void uwsgi_json_config(char *file, char *magic_table[]) { config_iter = json_object_iter_next(config, config_iter); } + if (colon) colon[0] = ':'; + } #endif diff --git a/core/xmlconf.c b/core/xmlconf.c index 9a42d975..d6fbc3cf 100644 --- a/core/xmlconf.c +++ b/core/xmlconf.c @@ -151,6 +151,8 @@ void uwsgi_xml_config(char *filename, struct wsgi_request *wsgi_req, char *magic } /* We can safely free resources */ + if (colon) colon[0] = ':'; + xmlFreeDoc(doc); xmlCleanupParser(); @@ -267,6 +269,7 @@ void uwsgi_xml_config(char *filename, struct wsgi_request *wsgi_req, char *magic } while (!done); + if (colon) colon[0] = ':'; // we can safely free, as we have a copy of datas XML_ParserFree(parser); diff --git a/core/yaml.c b/core/yaml.c index bd1dcba4..5dd43a4c 100644 --- a/core/yaml.c +++ b/core/yaml.c @@ -280,6 +280,7 @@ next: } #endif + if (colon) colon[0] = ':'; }