mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[c,attributes] mark functions with attirbute malloc
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user