From 7800f99971f1900c301be06bb77c1f45cdd685dd Mon Sep 17 00:00:00 2001 From: freetz Date: Thu, 29 Sep 2005 09:41:32 +0000 Subject: [PATCH] - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168744 Changed files: gamin-doublefree_fix.patch -> 1.1 --- gamin-doublefree_fix.patch | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 gamin-doublefree_fix.patch diff --git a/gamin-doublefree_fix.patch b/gamin-doublefree_fix.patch new file mode 100644 index 0000000..51812e2 --- /dev/null +++ b/gamin-doublefree_fix.patch @@ -0,0 +1,34 @@ +Index: server/gam_connection.c +=================================================================== +RCS file: /cvs/gnome/gamin/server/gam_connection.c,v +retrieving revision 1.27 +retrieving revision 1.29 +diff -u -p -r1.27 -r1.29 +--- server/gam_connection.c 10 Sep 2005 10:46:57 -0000 1.27 ++++ server/gam_connection.c 22 Sep 2005 08:09:03 -0000 1.29 +@@ -387,8 +387,13 @@ gam_connection_request(GamConnDataPtr co + gam_listener_remove_subscription(conn->listener, sub); + gam_remove_subscription(sub); + #ifdef ENABLE_INOTIFY +- if (gam_inotify_is_running()) +- gam_subscription_free(sub); ++ if ((gam_inotify_is_running()) && (!gam_exclude_check(path))) { ++ gam_fs_mon_type type; ++ ++ type = gam_fs_get_mon_type (path); ++ if (type != GFS_MT_POLL) ++ gam_subscription_free(sub); ++ } + #endif + + if (gam_send_ack(conn, req->seq, path, pathlen) < 0) { +@@ -396,7 +401,8 @@ gam_connection_request(GamConnDataPtr co + gam_connection_get_pid(conn)); + } + g_free(path); +- } break; ++ break; ++ } + case GAM_REQ_DEBUG: + #ifdef GAMIN_DEBUG_API + gam_debug_add(conn, req->path, options); -- 2.43.0