You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e02272b
Browse filesBrowse the repository at this point in the historyBrowse files
/* Codes_SRS_AMQPVALUE_01_154: [If allocating memory for the list according to the new size fails, then amqpvalue_set_list_item_count shall return a non-zero value, while preserving the existing list contents.] */
1285
-
LogError("Could not reallocate list memory");
1286
+
LogError("Could not reallocate list memory, size:%zu", realloc_size);
/* Codes_SRS_AMQPVALUE_01_170: [When amqpvalue_set_list_item fails due to not being able to clone the item or grow the list, the list shall not be altered.] */
1422
-
LogError("Could not reallocate list storage");
1426
+
LogError("Could not reallocate list storage, size:%zu", realloc_size);
/* Codes_SRS_AMQPVALUE_01_186: [If allocating memory to hold a new key/value pair fails, amqpvalue_set_map_value shall fail and return a non-zero value.] */
1620
1627
amqpvalue_destroy(cloned_key);
1621
1628
amqpvalue_destroy(cloned_value);
1622
-
LogError("Could not reallocate memory for map");
1629
+
LogError("Could not reallocate memory for new_pairs map, size:%zu", realloc_size);
1623
1630
result=MU_FAILURE;
1624
1631
}
1625
1632
else
@@ -1918,13 +1925,16 @@ int amqpvalue_add_array_item(AMQP_VALUE value, AMQP_VALUE array_item_value)
/* Codes_SRS_AMQPVALUE_01_423: [ When `amqpvalue_add_array_item` fails due to not being able to clone the item or grow the array, the array shall not be altered. ] */
1925
1935
/* Codes_SRS_AMQPVALUE_01_424: [ If growing the array fails, then `amqpvalue_add_array_item` shall fail and return a non-zero value. ] */
/* Tests_S_R_S_CONNECTION_01_198: [If adding the endpoint to the endpoints list tracked by the connection fails, connection_create_endpoint shall fail and return NULL.] */
1904
-
LogError("Cannot reallocate memory for connection endpoints");
1907
+
LogError("Cannot reallocate memory for connection endpoints, size:%zu", realloc_size);
/* Codes_SRS_HEADER_DETECT_IO_01_009: [ The `header_detect_entries` array shall be copied so that it can be later used when detecting which header was received. ]*/
LogError("Invalid size for body_amqp_data_items");
241
+
message_destroy(result);
241
242
result=NULL;
242
243
}
243
244
else
@@ -1022,7 +1023,7 @@ int message_add_body_amqp_data(MESSAGE_HANDLE message, BINARY_DATA amqp_data)
1022
1023
if ((message==NULL) ||
1023
1024
/* Tests_SRS_MESSAGE_01_089: [ If the `bytes` member of `amqp_data` is NULL and the `size` member is non-zero, `message_add_body_amqp_data` shall fail and return a non-zero value. ]*/
0 commit comments