[server] mark all WINPR_ATTR_MALLOC also nodiscard

This commit is contained in:
akallabeth
2026-01-26 13:08:14 +01:00
parent 3a8eeaa24a
commit 460ca149f2
8 changed files with 8 additions and 0 deletions

View File

@@ -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);

View File

@@ -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)