diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-13 21:08:34 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-13 21:08:34 -0800 |
commit | c967f91f1f35f62bf0f07669e4d13f987451dc1b (patch) | |
tree | a665419819782248db4cb873d7b07bb6e39bdef5 /pcap-tc.c | |
parent | 9e5dcd11abcd46b612dffa21cc4625b931b175f5 (diff) |
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.
Diffstat (limited to 'pcap-tc.c')
0 files changed, 0 insertions, 0 deletions