mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[server] mark all WINPR_ATTR_MALLOC also nodiscard
This commit is contained in:
@@ -36,6 +36,7 @@ typedef PfChannelResult (*ChannelTrackerPeekFn)(ChannelStateTracker* tracker, BO
|
||||
void channelTracker_free(ChannelStateTracker* t);
|
||||
|
||||
WINPR_ATTR_MALLOC(channelTracker_free, 1)
|
||||
WINPR_ATTR_NODISCARD
|
||||
ChannelStateTracker* channelTracker_new(pServerStaticChannelContext* channel,
|
||||
ChannelTrackerPeekFn fn, void* data);
|
||||
|
||||
|
||||
@@ -114,6 +114,7 @@ static const char* key_cert_file = "CertificateFile";
|
||||
static const char* key_cert_content = "CertificateContent";
|
||||
|
||||
WINPR_ATTR_MALLOC(CommandLineParserFree, 1)
|
||||
WINPR_ATTR_NODISCARD
|
||||
static char** pf_config_parse_comma_separated_list(const char* list, size_t* count)
|
||||
{
|
||||
if (!list || !count)
|
||||
|
||||
Reference in New Issue
Block a user