fix some memory leaks valgrind caught
note modifications in vpool