fix memleaks and change artifact name

Change-Id: If4d9482a2115b950ca5d35d17ee884a9cd727cbe