fix resource leak on error (Coverity 1256245)

This commit is contained in:
Vincent Sanders 2014-11-30 11:20:57 +00:00
parent 6a2461da8d
commit 1c735140b6

View File

@ -1411,6 +1411,7 @@ fetch(nsurl *url,
}
} else if (datalen == 0) {
/* caller provided a buffer but no length bad parameter */
close(fd);
return NSERROR_BAD_PARAMETER;
}