app/testpmd: fix mbuf leak with multi-segment Tx
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 8 May 2019 10:27:37 +0000 (11:27 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 8 May 2019 18:31:43 +0000 (20:31 +0200)
commitb3711336280364172e48ccd38d965abfb854d7a9
tree9f4a191a49090a919eb0fbb3cb39204f3abf95f2
parent617ecc900087868adca9bccd148e7446aabf5743
app/testpmd: fix mbuf leak with multi-segment Tx

The last mbuf allocated in bulk is never used and never freed.

Fixes: 01b645dcff7f ("app/testpmd: move txonly prepare in separate function")
Fixes: 561ddcf8d099 ("app/testpmd: allocate txonly segments per bulk")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/txonly.c