[PATCH 0/2] A couple of memleak fixes