Closed ewertons closed 6 years ago
Issue was root-caused to be in this code change: 34efcbb18d986ab48581499d0c87c82064830b36
+ case SESSION_SEND_TRANSFER_ERROR:
+ singlylinkedlist_remove(link->pending_deliveries, delivery_instance_list_item);
+ free(pending_delivery);
+ *link_transfer_error = LINK_TRANSFER_ERROR;
+ async_operation_destroy(result);
+ result = NULL;
+ break;
free(pending_delivery) should not be invoked (here and everywhere) since the deallocation is done through async_operation_destroy.
Issue fixed.
This issue was experienced using azure-iot-sdk-c (1.1.28).
Environment: Raspbian on Pi3 (Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux)
Here are the repro steps:
Callstack: