Closed yunhaoling closed 2 years ago
amqpvalue_to_string will malloc memory for the string, we should free the c allocated memory after usage.
amqpvalue_to_string
according to cython, https://cython.readthedocs.io/en/latest/src/tutorial/strings.html, we could copy the c string into python string first, then we should be able to safely free the c string and let python take over the life management of the python string.
/azp run python - uamqp - tests
/azp run azure-uamqp-python - all-tests
amqpvalue_to_string
will malloc memory for the string, we should free the c allocated memory after usage.according to cython, https://cython.readthedocs.io/en/latest/src/tutorial/strings.html, we could copy the c string into python string first, then we should be able to safely free the c string and let python take over the life management of the python string.