File bug-401247_fam_09_fix_leak.patch of Package fam
diff -Naur src/DNotify.c++ fam-2.7.0-fix-leak/src/DNotify.c++ --- src/DNotify.c++ 2006-08-04 20:20:01.000000000 +1000 +++ fam-2.7.0-fix-leak/src/DNotify.c++ 2006-08-04 20:21:31.000000000 +1000 @@ -69,6 +69,12 @@ n_dir_watches = 0; } + ~FileWatch(void) { + if (dir_watch) { + free(dir_watch); + } + } + void add_dir_watch (DirWatch *w); bool has_dir_watch (DirWatch *w); };