AJCORE-1234: Fix possible resource leak

Found via static analysis tool.

Change-Id: Ia231cb9d59b633ba0109a301469d3ec5e081390d
Signed-off-by: Steve Kinneberg <stevek@qce.qualcomm.com>
Merge "AJCORE-1234: Fix possible resource leak" into RB14.12