Fix memory leak.

Change-Id: Ic54eb242d785f22da6ecaa83fa150128903030ae