Skip to content

Commit

Permalink
netdev-dpdk: Fix memory leak in netdev_dpdk_get_custom_stats().
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 40c23a5 commit 526259f
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 @@ -2410,6 +2410,8 @@ netdev_dpdk_get_custom_stats(const struct netdev *netdev,
* reconfigured */
netdev_dpdk_clear_xstats(dev);
}

free(values);
}

ovs_mutex_unlock(&dev->mutex);
Expand Down

0 comments on commit 526259f

Please sign in to comment.