Commit 91be8dac authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

directx_va: Fix leak

refs #18849
parent b37800b8
......@@ -274,9 +274,9 @@ char *directx_va_GetDecoderName(const GUID *guid)
return strdup(DXVA_MODES[i].name);
char *psz_name = malloc(36);
if (likely(psz_name))
asprintf(&psz_name, "Unknown decoder " GUID_FMT, GUID_PRINT(*guid));
char *psz_name;
if (asprintf(&psz_name, "Unknown decoder " GUID_FMT, GUID_PRINT(*guid)) < 0)
return NULL;
return psz_name;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment