minor memory leak fixup