wireshark/capchild
Guy Harris 4261109e1e Don't return an error string for NO_INTERFACES_FOUND.
Most callers of capture_interface_list() don't expect an error string
for NO_INTERFACES_FOUND, because that's not really an error, it's just a
statement of face (and perhaps an error of 0 should be returned), so
they don't bother freeing the error string, causing a leak.

Instead, have the one place that *did* expect it to return an error
string just put "No interfaces found" itself.

Also, have that place not check for an error string if interfaces *were*
found, as no error code or string is returned in that case.

Change-Id: I9cb8ed7ad22810b23e2251d2833d9b7ab02eec03
Reviewed-on: https://code.wireshark.org/review/3165
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-07-22 18:51:47 +00:00
..
CMakeLists.txt Move the routines to talk to dumpcap into a static libcapchild. 2014-06-23 23:58:29 +00:00
Makefile.am Move the routines to talk to dumpcap into a static libcapchild. 2014-06-23 23:58:29 +00:00
Makefile.common Move utility routines for capturing into a libcaputils static library. 2014-07-04 07:25:26 +00:00
Makefile.nmake Use forward slashes in paths to runlex.sh 2014-07-20 13:15:59 +00:00
capture_ifinfo.c Don't return an error string for NO_INTERFACES_FOUND. 2014-07-22 18:51:47 +00:00
capture_session.h Manage Interfaces 2014-07-02 20:56:37 +00:00
capture_sync.c Move utility routines for capturing into a libcaputils static library. 2014-07-04 07:25:26 +00:00
capture_sync.h Move the routines to talk to dumpcap into a static libcapchild. 2014-06-23 23:58:29 +00:00
doxygen.cfg.in Get rid of trailing blanks. 2014-06-24 02:08:37 +00:00