Merge pull request #10514 from akallabeth/double-free

[channels,rail] fix use after free
This commit is contained in:
akallabeth 2024-08-27 09:25:04 +02:00 committed by GitHub
commit d6b7e90d69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 7 deletions

View File

@ -219,13 +219,7 @@ static UINT rail_send_client_sysparam(RailClientContext* context, RAIL_SYSPARAM_
return error;
}
if ((error = rail_send_pdu(rail, s, TS_RAIL_ORDER_SYSPARAM)))
{
WLog_ERR(TAG, "rail_send_pdu failed with error %" PRIu32 "!", error);
}
Stream_Free(s, TRUE);
return error;
return rail_send_pdu(rail, s, TS_RAIL_ORDER_SYSPARAM);
}
/**