core/fsmon: fix memory leak

Reported by Coverity as CID #1100817
This commit is contained in:
Riccardo Magliocchetti
2013-10-25 19:35:38 +02:00
parent be2ed4dc4a
commit 0e695cbd6e
+1
View File
@@ -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;