diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2018-04-23 14:19:58 +0200 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2018-04-23 14:25:23 +0200 |
commit | 7e03c4c1b9ab518cddea377f2255c49e89dc476e (patch) | |
tree | a30ca553141930650d573f707936aab43a772f6e | |
parent | ca2085d3c7a630da6a1f28ee49b605d214d6b2e7 (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.c | 5 |
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) { |