am 88be4cb5: am 9b150b74: Close the cursor before assigning a new one to the same variable.

Merge commit '88be4cb5ee6718a971f18cc14a5699204d28e082'

* commit '88be4cb5ee6718a971f18cc14a5699204d28e082':
  Close the cursor before assigning a new one to the same variable.