[c,attributes] mark functions with attirbute malloc

This commit is contained in:
akallabeth
2025-11-07 11:17:08 +01:00
parent 33097cbde4
commit ce87165719
2 changed files with 3 additions and 0 deletions

View File

@@ -783,6 +783,7 @@ extern "C"
* in case of an error.
* @since version 3.16.0
*/
WINPR_ATTR_MALLOC(free, 1)
FREERDP_API char* freerdp_settings_serialize(const rdpSettings* settings, BOOL pretty,
size_t* plength);

View File

@@ -401,6 +401,7 @@ extern "C"
* @return A string representation of the JSON instance or \b NULL
* @since version 3.6.0
*/
WINPR_ATTR_MALLOC(free, 1)
WINPR_API char* WINPR_JSON_Print(WINPR_JSON* item);
/**
@@ -411,6 +412,7 @@ extern "C"
* @return A string representation of the JSON instance or \b NULL
* @since version 3.6.0
*/
WINPR_ATTR_MALLOC(free, 1)
WINPR_API char* WINPR_JSON_PrintUnformatted(WINPR_JSON* item);
#ifdef __cplusplus