end of msgreset(). This should trigger the mpctx->allocated != 0 assertion when the leak occurs, not at server shutdown.