X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=app%2Ftest-pmd%2Ftm.c;h=d3ba86505e243cb57e0ef1128567c77ca597bb0a;hb=597cb1874068054d4c0be41f161a72ef37888930;hp=dd837cb8c37bcfd8a3af1edc941714d013340c3d;hpb=6e7cbd63706f3435b9d9a2057a37db1da01db9a7;p=deb_dpdk.git diff --git a/app/test-pmd/tm.c b/app/test-pmd/tm.c index dd837cb8..d3ba8650 100644 --- a/app/test-pmd/tm.c +++ b/app/test-pmd/tm.c @@ -616,6 +616,7 @@ softport_tm_tc_node_add(portid_t port_id, struct tm_hierarchy *h, error->message, shaper_profile_id); + free(tnp.shared_shaper_id); return -1; } tnp.shaper_profile_id = shaper_profile_id; @@ -631,6 +632,7 @@ softport_tm_tc_node_add(portid_t port_id, struct tm_hierarchy *h, error->message, h->tc_node_id[pos][k]); + free(tnp.shared_shaper_id); return -1; } shaper_profile_id++;