X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-pmd%2Fsoftnicfwd.c;h=94e6669d385238a7469557fd07ddf26a7cdce21b;hb=a3ffaccbf6d242021f231d0b7b313f2768562b4d;hp=7ff622806f6667eb208194dae14cb93be83eb2e9;hpb=1b3fd9738824e19d80edfc96f734b4e089b83707;p=dpdk.git diff --git a/app/test-pmd/softnicfwd.c b/app/test-pmd/softnicfwd.c index 7ff622806f..94e6669d38 100644 --- a/app/test-pmd/softnicfwd.c +++ b/app/test-pmd/softnicfwd.c @@ -458,6 +458,7 @@ softport_tm_tc_node_add(portid_t port_id, error->message, shaper_profile_id); + free(tnp.shared_shaper_id); return -1; } tnp.shaper_profile_id = shaper_profile_id; @@ -473,6 +474,7 @@ softport_tm_tc_node_add(portid_t port_id, error->message, h->tc_node_id[pos][k]); + free(tnp.shared_shaper_id); return -1; } shaper_profile_id++;