Repro RESOURCE_LEAK for captured local variable.