[coverity] 1543146 Use after free
This commit is contained in:
parent
b4fb4161d9
commit
3b04ab95d4
@ -2386,7 +2386,10 @@ static LONG WINAPI PCSC_SCardGetAttrib_Internal(SCARDHANDLE hCard, DWORD dwAttrI
|
||||
status = g_PCSC.pfnSCardGetAttrib(hCard, pcsc_dwAttrId, tmp, &pcsc_cbAttrLen);
|
||||
|
||||
if (status != SCARD_S_SUCCESS)
|
||||
{
|
||||
free(tmp);
|
||||
tmp = NULL;
|
||||
}
|
||||
else
|
||||
PCSC_AddMemoryBlock(hContext, tmp);
|
||||
*(BYTE**)pbAttr = tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user