diff --git a/channels/rdpsnd/client/rdpsnd_main.c b/channels/rdpsnd/client/rdpsnd_main.c index df16616ce..0ed4aa2be 100644 --- a/channels/rdpsnd/client/rdpsnd_main.c +++ b/channels/rdpsnd/client/rdpsnd_main.c @@ -1560,7 +1560,7 @@ static rdpsndPlugin* allocatePlugin(void) fail: if (rdpsnd) - audio_format_free(rdpsnd->fixed_format); + audio_formats_free(rdpsnd->fixed_format, 1); free(rdpsnd); return NULL; }