app/testpmd: fix buffer leak in TM command
authorNithin Dabilpuram <nithin.dabilpuram@caviumnetworks.com>
Thu, 5 Jul 2018 05:45:46 +0000 (11:15 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 17:29:56 +0000 (19:29 +0200)
commitb23ee8f2ac5de4a52573f844ba3c4f3261c3f7e7
tree1d2995952c946b680ed5156263e29eb359d468f7
parent1b3fd9738824e19d80edfc96f734b4e089b83707
app/testpmd: fix buffer leak in TM command

Free the buffer allocated for shared_shaper_id array in
case of configuration without shared shapers.

Fixes: 996cb153af06 ("app/testpmd: add commands for TM nodes and hierarchy commit")

Signed-off-by: Nithin Dabilpuram <nithin.dabilpuram@caviumnetworks.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
app/test-pmd/cmdline_tm.c