Fix leaking a cursor

Change-Id: I1953ea995e83eb4f787f28b0fd510805e4ffc6eb
TRDS:[Email] Dark Email (1/2)

Change-Id: I7be2c501f818922da675cfd8d490e387afb9247b