Fix leaking a cursor

Change-Id: I1953ea995e83eb4f787f28b0fd510805e4ffc6eb
Automatic translation import

Change-Id: I910fbdc44f03b115fc5df2e4cef2291e3e1bdc0d