From 575a042819bcf283162f22ad33067d7c200a5f31 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Wed, 27 Sep 2023 13:39:14 +0200 Subject: [PATCH] Use result of g_string_free when arg 2 is FALSE --- src/gsad_gmp_arguments.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gsad_gmp_arguments.c b/src/gsad_gmp_arguments.c index c57f3f978..a188e651a 100644 --- a/src/gsad_gmp_arguments.c +++ b/src/gsad_gmp_arguments.c @@ -71,11 +71,7 @@ gmp_arguments_string (gmp_arguments_t *arguments) g_free (escaped_value); } - gchar *retval = argumentslist->str; - - g_string_free (argumentslist, FALSE); - - return retval; + return g_string_free (argumentslist, FALSE); } gboolean