diff --git a/core/fsmon.c b/core/fsmon.c index 8a306783..f02043e6 100644 --- a/core/fsmon.c +++ b/core/fsmon.c @@ -38,6 +38,7 @@ void uwsgi_fsmon_setup() { char *space = strchr(copy, ' '); if (!space) { uwsgi_log("[uwsgi-fsmon] invalid syntax: \"%s\"\n", usl->value); + free(copy); goto next; } *space = 0;