mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 05:31:44 +00:00
spooler: filename cannot be null
Since it is allocated by uwsgi_malloc. Reported by Coverity as CID #1153071
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user