From ce260ecbb6798dab2db20774dac9c08525bcf936 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Sat, 8 Feb 2014 12:49:17 +0100 Subject: [PATCH] spooler: filename cannot be null Since it is allocated by uwsgi_malloc. Reported by Coverity as CID #1153071 --- core/spooler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/spooler.c b/core/spooler.c index 892503a5..2245ecee 100644 --- a/core/spooler.c +++ b/core/spooler.c @@ -379,7 +379,7 @@ clear: if (unlink(filename)) { uwsgi_error("uwsgi_spool_request()/unlink()"); } - if (filename) free(filename); + free(filename); // unlock the file too close(fd); return NULL;