From 9cc0f0d4049429e443d23b649ae5cc34e71c7fab Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 14 Aug 2018 11:26:58 +0200 Subject: [PATCH] Fix leak in flatpak_cache_http_uri Need to free the return value of soup_header_parse_param_list Closes: #1966 Approved by: alexlarsson --- common/flatpak-utils-http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-utils-http.c b/common/flatpak-utils-http.c index 03b2215d..53074162 100644 --- a/common/flatpak-utils-http.c +++ b/common/flatpak-utils-http.c @@ -207,7 +207,7 @@ set_cache_http_data_from_headers (CacheHttpData *data, if (cache_control && *cache_control) { - GHashTable *params = soup_header_parse_param_list (cache_control); + g_autoptr(GHashTable) params = soup_header_parse_param_list (cache_control); GHashTableIter iter; gpointer key, value;