From e23ea40aaa15fb596d2b3026926ae830b0c55868 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 23 Jan 2023 11:50:34 +0000 Subject: [PATCH] gwin32: Fix two minor string leaks Signed-off-by: Philip Withnall Fixes: #2891, #2892 --- gio/gwin32mount.c | 2 ++ gio/win32/gwin32fsmonitorutils.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gio/gwin32mount.c b/gio/gwin32mount.c index 8df59b765..98560259b 100644 --- a/gio/gwin32mount.c +++ b/gio/gwin32mount.c @@ -406,6 +406,8 @@ g_win32_mount_get_icon (GMount *mount) { win32_mount->icon = g_themed_icon_new_with_default_fallbacks (_win32_drive_type_to_icon (win32_mount->drive_type, FALSE)); } + + g_free (wfn); } return g_object_ref (win32_mount->icon); diff --git a/gio/win32/gwin32fsmonitorutils.c b/gio/win32/gwin32fsmonitorutils.c index f2ab5472a..dd945dc87 100644 --- a/gio/win32/gwin32fsmonitorutils.c +++ b/gio/win32/gwin32fsmonitorutils.c @@ -316,6 +316,7 @@ g_win32_fs_monitor_init (GWin32FSMonitorPrivate *monitor, wcsdup (wshortname); } + g_free (wfullpath); g_free (fullpath); } else