Minor memory allocation cleanup