The fix to MXS-1338 added a bug where the buffer objects were freed after the shared buffer was freed.