cyclonedds/src
Erik Boasson 98f757a5ab let dds_get_qos reset the input qos first
Getting a QoS from an entity is akin to reading, and all read/take operations reuse or free/reallocate memory to avoid memory leaks, and so it is a reasonable assumption that calling dds_get_qos repeatedly without intervening calls to dds_reset_qos would not leak any memory either. (This was actually an assumption in the builtin topics test.) Therefore, it is reasonable to first call dds_reset_qos in dds_get_qos. All operations in the API that yield or modify a QoS object result in a properly initialised one, therefore the input to dds_get_qos is necessarily initialised, and so this is safe.

Signed-off-by: Erik Boasson <eb@ilities.com>
2019-01-17 12:34:37 +01:00
..
cmake Remove unnecessary CMake modules and fixup os/CMakeLists.txt 2019-01-07 18:15:07 +01:00
core let dds_get_qos reset the input qos first 2019-01-17 12:34:37 +01:00
docs Rename get and set of enabled status to mask 2018-12-11 11:07:09 +01:00
etc Let dds_create_participant determine domain id if config specifies "any" (new default) 2018-10-14 14:02:47 +08:00
examples add listener-, waitset- and polling-mode to thorughput subscriber 2019-01-17 10:18:14 +01:00
idlc Fix build with openJDK-10 2018-06-23 21:51:21 +02:00
os skip testing lookup of an invalid hostname, it times out in some configurations 2019-01-17 10:18:14 +01:00
scripts Initial contribution 2018-04-10 17:03:59 +02:00
tools minor cleanup to address some compiler warnings 2019-01-17 10:18:14 +01:00
util Remove unnecessary CMake modules and fixup os/CMakeLists.txt 2019-01-07 18:15:07 +01:00
CMakeLists.txt enable tons of warnings in Xcode 2019-01-17 10:18:14 +01:00