app/testpmd: fix allocation check in MTR parsing