numam-dpdk/drivers
Stefan Baranoff e59196e01c net/pcap: fix memory leak in dumper open
In open_single_tx_pcap there is a call to pcap_open_dead which calls
malloc to create and return a pcap_t. That object is never freed in
this case. Other places it is freed by passing it back similar to the
way the pcap_dumper_t is in this case.

The pcap_t is only used to create the pcap_dumper_t and is never used
again so freeing it here is safe and much simpler than trying to pass
it back to be freed in eth_dev_stop along with the other
pcap_t/pcap_dumper_t objects.

Fixes: 4c173302c3 ("pcap: add new driver")
Cc: stable@dpdk.org

Signed-off-by: Stefan Baranoff <sbaranoff@gmail.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2017-11-07 10:42:42 +01:00
..
bus bus/pci: fix namespace of sysfs path function 2017-11-07 00:44:10 +01:00
crypto cryptodev: rename physical address type to IOVA 2017-11-06 22:44:26 +01:00
event remove useless memzone includes 2017-11-06 22:12:08 +01:00
mempool mempool: rename address mapping function to IOVA 2017-11-06 22:26:13 +01:00
net net/pcap: fix memory leak in dumper open 2017-11-07 10:42:42 +01:00
Makefile drivers: add net as dependency for event drivers 2017-10-25 14:03:43 +02:00