Skip to content

Commit

Permalink
netdev-dpdk: Fix memory leak in netdev_dpdk_configure_xstats().
Browse files Browse the repository at this point in the history
CC: Michal Weglicki <[email protected]>
Fixes: 971f4b3 ("netdev: Custom statistics.")
Signed-off-by: Ilya Maximets <[email protected]>
Signed-off-by: Ian Stokes <[email protected]>
  • Loading branch information
igsilya authored and istokes committed Jan 26, 2018
1 parent 526259f commit 34eb086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/netdev-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,8 @@ netdev_dpdk_configure_xstats(struct netdev_dpdk *dev)
VLOG_WARN("Can't get XSTATS IDs for port: %"PRIu8,
dev->port_id);
}

free(rte_xstats);
}
}
} else {
Expand Down

0 comments on commit 34eb086

Please sign in to comment.