A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: amqp_management.c
- Revision:
- 25:1101516ee67d
- Parent:
- 23:1111ee8bcba4
- Child:
- 27:d74f1cea23e1
--- a/amqp_management.c Mon May 08 10:50:45 2017 -0700 +++ b/amqp_management.c Mon May 22 10:35:21 2017 -0700 @@ -679,10 +679,12 @@ } else { + char* receiver_link_name; + (void)memcpy(sender_link_name, management_node, management_node_length); (void)memcpy(sender_link_name + management_node_length, sender_suffix, COUNT_CHARS(sender_suffix) + 1); - char* receiver_link_name = (char*)malloc(management_node_length + COUNT_CHARS(receiver_suffix) + 1); + receiver_link_name = (char*)malloc(management_node_length + COUNT_CHARS(receiver_suffix) + 1); if (receiver_link_name == NULL) { /* Codes_SRS_AMQP_MANAGEMENT_01_033: [ If any other error occurs `amqp_management_create` shall fail and return NULL. ]*/