update vendor, cleanup memory leak