summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2018-04-26 03:51:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-26 03:51:38 +0000
commit077f0221942194640f8fa422580c62b27f938003 (patch)
tree9964413cb9254c8e4b2444dd78cb3ff7f9b9995d
parentb2b41e4dce0977e52b66a88d3fa3ac9bf28fe925 (diff)
parent7e03c4c1b9ab518cddea377f2255c49e89dc476e (diff)
Merge "Fix memory leak introduced by 4a65cd84"
-rw-r--r--VNFs/DPPD-PROX/handle_lat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/handle_lat.c b/VNFs/DPPD-PROX/handle_lat.c
index 8cc5c32b..d7706c3e 100644
--- a/VNFs/DPPD-PROX/handle_lat.c
+++ b/VNFs/DPPD-PROX/handle_lat.c
@@ -526,8 +526,11 @@ static int handle_lat_bulk(struct task_base *tbase, struct rte_mbuf **mbufs, uin
task->link_speed = task->port->link_speed * 125000L;
plog_info("\tPort %u: link speed is %ld Mbps\n",
(uint8_t)(task->port - prox_port_cfg), 8 * task->link_speed / 1000000);
- } else
+ } else if (n_pkts) {
+ return task->base.tx_pkt(&task->base, mbufs, n_pkts, NULL);
+ } else {
return 0;
+ }
}
if (n_pkts == 0) {