aboutsummaryrefslogtreecommitdiffstats
path: root/app/test-pmd/tm.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/test-pmd/tm.c')
-rw-r--r--app/test-pmd/tm.c2
1 files changed, 2 insertions, 0 deletions
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++;