clang: working qa test - w/ proper memory mgmt