summaryrefslogtreecommitdiffstats
path: root/app/test-pmd/softnicfwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/test-pmd/softnicfwd.c')
-rw-r--r--app/test-pmd/softnicfwd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/test-pmd/softnicfwd.c b/app/test-pmd/softnicfwd.c
index 7ff62280..94e6669d 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++;