monitor_kqueue: plug memory leak from strcpy() on directory delete
This commit is contained in:
parent
a1c8a1856d
commit
92820eb1ee
@ -69,6 +69,7 @@ dir_vnode_process(struct event *ev, u_int fflags)
|
|||||||
close(ev->fd);
|
close(ev->fd);
|
||||||
free(wt);
|
free(wt);
|
||||||
monitor_remove_directory(0, path);
|
monitor_remove_directory(0, path);
|
||||||
|
free(path);
|
||||||
return;
|
return;
|
||||||
} else if ((fflags & (NOTE_WRITE | NOTE_LINK)) ==
|
} else if ((fflags & (NOTE_WRITE | NOTE_LINK)) ==
|
||||||
(NOTE_WRITE | NOTE_LINK)) {
|
(NOTE_WRITE | NOTE_LINK)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user