mirror of
https://git.code.sf.net/p/minidlna/git
synced 2025-03-30 04:08:05 +00:00
monitor_kqueue: plug memory leak from strcpy() on directory delete
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user