From 3f501bb31b78aebcc47143553f061837d03d26a2 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 3 Oct 2021 21:16:56 +0800 Subject: [PATCH] [gnc-gnome-utils] fix memory leak from 9fb9868b --- gnucash/gnome-utils/gnc-gnome-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome-utils/gnc-gnome-utils.c b/gnucash/gnome-utils/gnc-gnome-utils.c index 6a44d38cfc..2c3cfac024 100644 --- a/gnucash/gnome-utils/gnc-gnome-utils.c +++ b/gnucash/gnome-utils/gnc-gnome-utils.c @@ -268,7 +268,7 @@ gnc_gnome_help_yelp_anchor_fix (GtkWindow *parent, const char *file_name, const gchar *filename = g_build_filename (help_path, *langs, help_file, NULL); if (g_file_test (filename, G_FILE_TEST_EXISTS)) { - full_path = g_strdup (filename); + full_path = filename; break; } g_free (filename);