lock mctx for DELETE_TRACE call in isc__mempool_put()
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mem.c,v 1.98.2.4 2002/02/08 03:57:39 marka Exp $ */
+/* $Id: mem.c,v 1.98.2.5 2002/03/20 22:51:43 marka Exp $ */
#include <config.h>
INSIST(mpctx->allocated > 0);
mpctx->allocated--;
+#if ISC_MEM_TRACKLINES
+ LOCK(&mctx->lock);
DELETE_TRACE(mctx, mem, mpctx->size, file, line);
+ UNLOCK(&mctx->lock);
+#endif /* ISC_MEM_TRACKLINES */
/*
* If our free list is full, return this to the mctx directly.