fixed memory leak in get pqr