Commit 048690a3 authored by Mark Andrews's avatar Mark Andrews
Browse files

2646. [bug] Incorrect cleanup on error in socket.c. [RT #19987]

parent 90c1e763
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment