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 fa4cf7771188e09a924ba904ec317ad93f003e91..3d30bc2a555b55c1d521952023d8d97ca286a51a 100644 --- a/glib2.spec +++ b/glib2.spec @@ -1,12 +1,13 @@ Name: glib2 Version: 2.68.1 -Release: 2 +Release: 3 Summary: The core library that forms the basis for projects such as GTK+ and GNOME License: LGPLv2+ URL: http://www.gtk.org Source0: http://download.gnome.org/sources/glib/2.68/glib-%{version}.tar.xz Patch6000: backport-correctly-use-3-parameters-for-clise-range.patch +Patch6001: backport-fix-a-memory-leak.patch BuildRequires: chrpath gcc gcc-c++ gettext gtk-doc perl-interpreter BUildRequires: glibc-devel libattr-devel libselinux-devel meson @@ -142,6 +143,12 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %doc %{_datadir}/gtk-doc/html/* %changelog +* Sat Aug 14 2021 liuyumeng - 2.68.1-3 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:fix a memory leak + * Tue Aug 10 2021 liuyumeng - 2.68.1-2 - Type:bugfix - Id:NA