mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
fix resource leak on error (Coverity 1256245)
This commit is contained in:
parent
6a2461da8d
commit
1c735140b6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user