]> git.pld-linux.org Git - packages/gamin.git/blame - gamin-doublefree_fix.patch
- 0.1.7, double free patch included in sources
[packages/gamin.git] / gamin-doublefree_fix.patch
CommitLineData
7800f999 1Index: server/gam_connection.c
2===================================================================
3RCS file: /cvs/gnome/gamin/server/gam_connection.c,v
4retrieving revision 1.27
5retrieving revision 1.29
6diff -u -p -r1.27 -r1.29
7--- server/gam_connection.c 10 Sep 2005 10:46:57 -0000 1.27
8+++ server/gam_connection.c 22 Sep 2005 08:09:03 -0000 1.29
9@@ -387,8 +387,13 @@ gam_connection_request(GamConnDataPtr co
10 gam_listener_remove_subscription(conn->listener, sub);
11 gam_remove_subscription(sub);
12 #ifdef ENABLE_INOTIFY
13- if (gam_inotify_is_running())
14- gam_subscription_free(sub);
15+ if ((gam_inotify_is_running()) && (!gam_exclude_check(path))) {
16+ gam_fs_mon_type type;
17+
18+ type = gam_fs_get_mon_type (path);
19+ if (type != GFS_MT_POLL)
20+ gam_subscription_free(sub);
21+ }
22 #endif
23
24 if (gam_send_ack(conn, req->seq, path, pathlen) < 0) {
25@@ -396,7 +401,8 @@ gam_connection_request(GamConnDataPtr co
26 gam_connection_get_pid(conn));
27 }
28 g_free(path);
29- } break;
30+ break;
31+ }
32 case GAM_REQ_DEBUG:
33 #ifdef GAMIN_DEBUG_API
34 gam_debug_add(conn, req->path, options);
This page took 0.067543 seconds and 4 git commands to generate.