monitor_kqueue: plug memory leak from strcpy() on directory delete

This commit is contained in:
Gleb Smirnoff 2022-02-11 07:41:06 -08:00
parent a1c8a1856d
commit 92820eb1ee

View File

@ -69,6 +69,7 @@ dir_vnode_process(struct event *ev, u_int fflags)
close(ev->fd);
free(wt);
monitor_remove_directory(0, path);
free(path);
return;
} else if ((fflags & (NOTE_WRITE | NOTE_LINK)) ==
(NOTE_WRITE | NOTE_LINK)) {