[channels,audin] fix audin_server_recv_formats cleanup

This commit is contained in:
akallabeth
2026-01-26 10:14:08 +01:00
parent f039d35032
commit 1c5c742231

View File

@@ -146,11 +146,7 @@ static UINT audin_server_recv_formats(audin_server_context* context, wStream* s,
AUDIO_FORMAT* format = &pdu.SoundFormats[i];
if (!audio_format_read(s, format))
{
WLog_Print(audin->log, WLOG_ERROR, "Failed to read audio format");
audio_formats_free(pdu.SoundFormats, i + i);
return ERROR_INVALID_DATA;
}
goto fail;
audio_format_print(audin->log, WLOG_DEBUG, format);
}