Bug fix: Local variable was being checked instead of the stored one which is the pointer that gets set after freeing.
Bug fix: Local variable was being checked instead of the stored one which is the pointer that gets set after freeing.

awslabs/amazon-kinesis-video-streams-webrtc-sdk-c,awslabs/amazon-kinesis-video-streams-webrtc-sdk-c,awslabs/amazon-kinesis-video-streams-webrtc-sdk-c,awslabs/amazon-kinesis-video-streams-webrtc-sdk-c