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 fc8525f commit c60a8f7
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 c60a8f7

Please sign in to comment.