mem: add length to memseg list