Commit 61facaae authored by Mark Andrews's avatar Mark Andrews
Browse files

change 2390 leaked memory

parent 8afedf9e
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dispatch.c,v 1.145 2008/07/18 02:35:42 jinmei Exp $ */ /* $Id: dispatch.c,v 1.146 2008/07/18 06:09:39 marka Exp $ */
/*! \file */ /*! \file */
...@@ -1040,6 +1040,8 @@ udp_recv(isc_event_t *ev_in, dns_dispatch_t *disp, dispsocket_t *dispsock) { ...@@ -1040,6 +1040,8 @@ udp_recv(isc_event_t *ev_in, dns_dispatch_t *disp, dispsocket_t *dispsock) {
goto sendresponse; goto sendresponse;
} }
} else { } else {
free_buffer(disp, ev->region.base, ev->region.length);
UNLOCK(&disp->lock); UNLOCK(&disp->lock);
isc_event_free(&ev_in); isc_event_free(&ev_in);
return; return;
......
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