inotify, directory: fix memory leak.