Fix potential leak

Fix potential memory leak introduced with bugfix for bug 31449945.

Bug: 36389123
Change-Id: I5a9a3551692d6cba385b45c4c7a465aa377a62b1
(cherry picked from commit a0721999eccd22d900eb6dec7e48f835f28ce999)
1 file changed