Removed one more memory leak in gpdb module.