vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Thu Aug 9 09:58:23 2018 +0200| [0fd8cdabe9d584bbc4f46e819af68ea0d7dbd315] | committer: Hugo Beauzée-Luyssen
dxva2: Fix memory leak on error > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0fd8cdabe9d584bbc4f46e819af68ea0d7dbd315 --- modules/codec/avcodec/dxva2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c index e02295858c..5bdc786796 100644 --- a/modules/codec/avcodec/dxva2.c +++ b/modules/codec/avcodec/dxva2.c @@ -514,7 +514,9 @@ static int DxSetupOutput(vlc_va_t *va, const GUID *input, const video_format_t * if (!directx_va_canUseDecoder(va, identifier.VendorId, identifier.DeviceId, input, driverBuild)) { - msg_Warn(va, "GPU blacklisted for %s codec", directx_va_GetDecoderName(input)); + char* psz_decoder_name = directx_va_GetDecoderName(input); + msg_Warn(va, "GPU blacklisted for %s codec", psz_decoder_name); + free(psz_decoder_name); return VLC_EGENERIC; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
