freememory fix