From 0e695cbd6efb1a45dec7da1759122e92dcd7974d Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Fri, 25 Oct 2013 19:35:38 +0200 Subject: [PATCH] core/fsmon: fix memory leak Reported by Coverity as CID #1100817 --- core/fsmon.c | 1 + 1 file changed, 1 insertion(+) 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;