summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2018-04-23 14:19:58 +0200
committerDeepak S <deepak.s@linux.intel.com>2018-04-26 14:52:52 +0530
commit741ca9d3172092b1fec9a1256430fcedc767a537 (patch)
tree179fd61bf2260c896c91b29ade0c9e13ed19129b
parent349656d5decfa33dbf9d6670c7d51170488d8a0b (diff)
Fix memory leak introduced by 4a65cd84
Change-Id: I937bb38baa51d1902793fa8720a3ea740a583473 Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
-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 8cc5c32..d7706c3 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) {