mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
2646. [bug] Incorrect cleanup on error in socket.c. [RT #19987]
This commit is contained in:
parent
90c1e763d5
commit
048690a34d
2
CHANGES
2
CHANGES
@ -1,3 +1,5 @@
|
||||
2646. [bug] Incorrect cleanup on error in socket.c. [RT #19987]
|
||||
|
||||
2645. [port] "gcc -m32" didn't work on amd64 and x86_64 platforms
|
||||
which default to 64 bits. [RT #19927]
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: socket.c,v 1.318 2009/04/18 01:28:17 jinmei Exp $ */
|
||||
/* $Id: socket.c,v 1.319 2009/08/13 02:11:20 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@ -3659,7 +3659,7 @@ setup_watcher(isc_mem_t *mctx, isc_socketmgr_t *manager) {
|
||||
manager->maxsocks);
|
||||
if (manager->fdpollinfo == NULL) {
|
||||
isc_mem_put(mctx, manager->events,
|
||||
sizeof(pollinfo_t) * manager->maxsocks);
|
||||
sizeof(struct pollfd) * manager->nevents);
|
||||
return (ISC_R_NOMEMORY);
|
||||
}
|
||||
memset(manager->fdpollinfo, 0, sizeof(pollinfo_t) * manager->maxsocks);
|
||||
|
Loading…
x
Reference in New Issue
Block a user