diff --git a/backport-fix-a-memory-leak.patch b/backport-fix-a-memory-leak.patch new file mode 100644 index 0000000000000000000000000000000000000000..e303568f5c2b06d0bf5c0a448d459305c2ca15d1 --- /dev/null +++ b/backport-fix-a-memory-leak.patch @@ -0,0 +1,27 @@ +From df500c68a4d0741d1d6cf8ec3f8039a0d1f4b174 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= +Date: Tue, 1 Jun 2021 17:43:45 +0200 +Subject: [PATCH] inotify: Fix a memory leak + +Fixes: #2311 +Conflict:NA +Reference:https://github.com/GNOME/glib/commit/df500c68a4d0741d1d6cf8ec3f8039a0d1f4b174 +--- + gio/inotify/inotify-path.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gio/inotify/inotify-path.c b/gio/inotify/inotify-path.c +index f0528f4..e1129cd 100644 +--- a/gio/inotify/inotify-path.c ++++ b/gio/inotify/inotify-path.c +@@ -208,6 +208,7 @@ ip_watched_file_free (ip_watched_file_t *file) + g_assert (file->subs == NULL); + g_free (file->filename); + g_free (file->path); ++ g_free (file); + } + + static void +-- +2.27.0 + diff --git a/glib2.spec b/glib2.spec index e2ecfb1769113811cc66c32fc42911981236d455..edbf78dcb183139a3988ebb632f47591ad28f4b5 100644 --- a/glib2.spec +++ b/glib2.spec @@ -1,6 +1,6 @@ Name: glib2 Version: 2.66.8 -Release: 1 +Release: 2 Summary: The core library that forms the basis for projects such as GTK+ and GNOME License: LGPLv2+ URL: http://www.gtk.org @@ -19,6 +19,7 @@ Patch6008: backport-gdbusauth-fix-error-leak.patch Patch6009: backport-gdbusobjectmanagerservice-fix-leak-in-error-path.patch Patch6010: backport-gfileenumerator-fix-leak-in-error-path.patch Patch6011: backport-gsettings-Fix-a-minor-memory-leak-when-getting-GSettingsAction-state.patch +Patch6012: backport-fix-a-memory-leak.patch BuildRequires: chrpath gcc gcc-c++ gettext perl-interpreter %ifnarch i686 @@ -188,6 +189,12 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %endif %changelog +* Thu Aug 19 2021 liuyumeng - 2.66.8-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESE:fix a memory leak + * Sat Jun 5 2021 wangkerong - 2.66.8-1 - Type:NA - Id:NA