1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 06:00:41 +00:00

(trunk, libT) #5583 'blockfile.tmp file descriptor is leaked when importing blocklist' -- fix by rb07.

This commit is contained in:
Jordan Lee 2014-01-19 02:03:41 +00:00
parent f6fadd586f
commit f470ab3210

View file

@ -1542,6 +1542,8 @@ gotNewBlocklist (tr_session * session,
if (write (fd, response, response_byte_count) < 0)
tr_snprintf (result, sizeof (result), _("Couldn't save file \"%1$s\": %2$s"), filename, tr_strerror (errno));
tr_close_file(fd);
if (*result)
{
tr_logAddError ("%s", result);