]> The Tcpdump Group git mirrors - libpcap/commit
Plug memory leaks and clean up interface list creation.
authorGuy Harris <[email protected]>
Tue, 14 Nov 2017 05:08:34 +0000 (21:08 -0800)
committerGuy Harris <[email protected]>
Tue, 14 Nov 2017 05:08:34 +0000 (21:08 -0800)
commitc967f91f1f35f62bf0f07669e4d13f987451dc1b
treea665419819782248db4cb873d7b07bb6e39bdef5
parent9e5dcd11abcd46b612dffa21cc4625b931b175f5
Plug memory leaks and clean up interface list creation.

If we fail in the middle of constructing lists of savefiles or remote
devices, free the entries we've already allocated.

Use separate variables for "current device" and "last device in the
list", to try to squelch some warnings.

We already rely on the pointer to the place where the device list
pointer should be put not being null; no need to handle the case where
it is null.
pcap-new.c
pcap-rpcap.c