failing memory management