---
 scripts/upload.cgi/upload.cgi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/upload.cgi/upload.cgi b/scripts/upload.cgi/upload.cgi
index e32573d..999155e 100644
--- a/scripts/upload.cgi/upload.cgi
+++ b/scripts/upload.cgi/upload.cgi
@@ -192,6 +192,7 @@ def main():
     tmpfd.close()
     check_checksum = m.hexdigest()
     if checksum != check_checksum:
+        os.unlink(tmpfile)
         send_error("Checksum check failed. Received %s instead of %s." % 
(check_checksum, checksum))
 
     # wow, even the check matches. make sure full path is valid now
-- 
1.8.5.3

_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Reply via email to