Moving the call to release to after its last usage.