[PATCH] hotspot: fix multiple potential memory leaks