Commit 2b9054e0 authored by Claudio Saavedra's avatar Claudio Saavedra

soup-headers: fix a leak in the strict parsing code

Once we bail out we are not going to add the rest of the items to the
hash table, so we need to manually delete them, otherwise they leak.
parent 760bee39
Pipeline #113939 passed with stage
in 1 minute and 6 seconds
......@@ -756,7 +756,7 @@ parse_param_list (const char *header, char delim, gboolean strict)
if (strict && duplicated) {
soup_header_free_param_list (params);
params = NULL;
g_free (item);
g_slist_foreach (iter, (GFunc)g_free, NULL);
break;
} else if (override || !duplicated)
g_hash_table_replace (params, item, value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment