tests: fix a memory leak in test-prio-queue.c