1
0
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:
Gleb Smirnoff
2022-02-11 07:41:06 -08:00
parent a1c8a1856d
commit 92820eb1ee

@ -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)) {