Fixes a few memory leaks introduced with the msgpack mods