test506: Fixed a couple of memory leaks in test