libsigrok/src
Lars-Peter Clausen 566007e15e Don't reset instance list in scan() callback
Some drivers set the device instance list to NULL in their scan() callback.
This means the driver loses all references to any devices contained in that
list and their resources will be leaked. Drivers can't free the devices at
this point either since an application might still use a device on the
list. So the existing devices on the instance list need to remain
unmodified during the scan() callback, even if that means that there will
be duplicates on the instance list. Only an explicit invocation of
sr_dev_clear() by the application is allowed to free the devices on the
instance list and reset the list.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2016-05-27 14:43:34 +02:00
..
dmm dmm: vc870: drop unused variable 2016-01-05 22:25:29 +01:00
hardware Don't reset instance list in scan() callback 2016-05-27 14:43:34 +02:00
input Input/trace32_ad: Make the sample rate an option 2016-05-09 13:02:47 +02:00
lcr config_list: Don't check for sdi->priv != NULL. 2016-05-17 01:12:56 +02:00
modbus modbus: silence a build warning 2015-12-29 13:19:36 +01:00
output srzip: zip_append_analog(): Fix memory leaks 2016-05-14 01:02:00 +02:00
scale SR_DF_ANALOG_OLD and sr_datafeed_analog_old renames. 2015-10-20 23:32:45 +02:00
scpi scpi: Add support for arbitray/definite length block data retrieval 2016-05-16 23:35:10 +02:00
transform transform/scale: Fix g_variant_new() argument. 2015-10-24 21:44:20 +02:00
analog.c analog: Implement division for sr_rational 2016-05-16 23:35:10 +02:00
backend.c Put driver pointers into special section 2016-05-18 01:41:55 +02:00
device.c Rename sr_dev_config_capabilities() to sr_dev_config_capabilities_list(). 2015-12-31 19:04:28 +01:00
error.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
ezusb.c drivers: Load firmware via new resource API 2015-10-01 15:44:55 +02:00
fallback.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
hwdriver.c config_list: Don't check for sdi->priv != NULL. 2016-05-17 01:12:56 +02:00
libsigrok-internal.h Put driver pointers into special section 2016-05-18 01:41:55 +02:00
log.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
resource.c resource: Replace ssize_t with gssize to avoid unistd.h 2016-01-04 20:53:30 +01:00
scpi.h scpi: introduce some more requests 2016-05-16 23:35:10 +02:00
serial.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
session.c dev_acquisition_start(): Ensure that sdi is always != NULL. 2016-04-29 19:26:17 +02:00
session_driver.c Remove unnecessary std_init() wrapper functions 2016-05-09 15:10:26 +02:00
session_file.c Enable loading of session files without total probes defined 2016-03-28 01:06:29 +02:00
soft-trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
std.c std_init(): Drop check if pass in driver is non-NULL 2016-05-09 15:10:26 +02:00
strutil.c strutil: add method to get an sr_rational from a string 2016-05-16 23:35:10 +02:00
sw_limits.c Add helper functions for software limits 2016-05-09 12:12:14 +02:00
trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
usb.c src/usb.c: Only allow hex characters in CONN_USB_VIDPID. 2015-12-29 13:21:01 +01:00
version.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00