spooler: filename cannot be null

Since it is allocated by uwsgi_malloc.
Reported by Coverity as CID #1153071
This commit is contained in:
Riccardo Magliocchetti
2014-02-08 12:49:17 +01:00
parent e143e25b3c
commit ce260ecbb6
+1 -1
View File
@@ -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;