Skip to content

Commit

Permalink
Use result of g_string_free when arg 2 is FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and timopollmeier committed Oct 5, 2023
1 parent 748b17e commit 575a042
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/gsad_gmp_arguments.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 575a042

Please sign in to comment.