rpms/gamin/devel gamin-0.1.9-filesystem-leak.patch, NONE, 1.1 gamin.spec, 1.63, 1.64
Matthias Clasen (mclasen)
fedora-extras-commits at redhat.com
Fri Sep 14 15:17:54 UTC 2007
Author: mclasen
Update of /cvs/extras/rpms/gamin/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30738
Modified Files:
gamin.spec
Added Files:
gamin-0.1.9-filesystem-leak.patch
Log Message:
fix a memory leak
gamin-0.1.9-filesystem-leak.patch:
--- NEW FILE gamin-0.1.9-filesystem-leak.patch ---
diff -up gamin-0.1.9/server/gam_fs.c.filesystem-leak gamin-0.1.9/server/gam_fs.c
--- gamin-0.1.9/server/gam_fs.c.filesystem-leak 2007-09-13 00:21:18.000000000 -0400
+++ gamin-0.1.9/server/gam_fs.c 2007-09-13 00:21:25.000000000 -0400
@@ -40,13 +40,13 @@ gam_fs_free_filesystems (void)
{
fs = iterator->data;
+ iterator = g_list_next (iterator);
+
filesystems = g_list_remove (filesystems, fs);
g_free (fs->path);
g_free (fs->fsname);
g_free (fs);
-
- iterator = g_list_next (filesystems);
}
}
Index: gamin.spec
===================================================================
RCS file: /cvs/extras/rpms/gamin/devel/gamin.spec,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- gamin.spec 14 Sep 2007 14:59:46 -0000 1.63
+++ gamin.spec 14 Sep 2007 15:17:21 -0000 1.64
@@ -1,7 +1,7 @@
Summary: Library providing the FAM File Alteration Monitor API
Name: gamin
Version: 0.1.9
-Release: 3%{?dist}%{?extra_release}
+Release: 4%{?dist}%{?extra_release}
License: LGPL
Group: Development/Libraries
Source: gamin-%{version}.tar.gz
@@ -13,6 +13,8 @@
BuildRequires: automake, libtool
Patch0: gamin-0.1.9-poll-less.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=403158
+Patch1: gamin-0.1.9-filesystem-leak.patch
%description
This C library provides an API and ABI compatible file alteration
@@ -44,6 +46,7 @@
%prep
%setup -q
%patch0 -p1 -b .poll-less
+%patch1 -p1 -b .filesystem-leak
%build
autoreconf --force --install
@@ -92,6 +95,9 @@
%doc doc/python.html
%changelog
+* Fri Sep 14 2007 Matthias Clasen <mclasen at redhat.com> - 0.1.9-4
+- Fix a memory leak
+
* Fri Sep 14 2007 Ray Strode <rstrode at redhat.com> - 0.1.9-3
- don't poll for non-existant watched files (bug 240385)
More information about the fedora-extras-commits
mailing list