fix memory leak

Change-Id: I40fe8d2303b8697b0f1482fa629e3e6734d62975