From 4b159b11eb4ec6637bc64fa3e20522f0cba2f3dd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 15 Feb 2024 00:00:00 +0000 Subject: [PATCH] httpcache: Free the GError before exiting Signed-off-by: Simon McVittie --- tests/httpcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/httpcache.c b/tests/httpcache.c index 3b9982f7..a4550fb0 100644 --- a/tests/httpcache.c +++ b/tests/httpcache.c @@ -6,7 +6,7 @@ int main (int argc, char *argv[]) { g_autoptr(FlatpakHttpSession) session = flatpak_create_http_session (PACKAGE_STRING); - GError *error = NULL; + g_autoptr(GError) error = NULL; const char *url, *dest; int flags = 0;