Skip to content
Commit 2a373625 authored by Jack Styles's avatar Jack Styles Committed by Hugues Kamba Mpiana
Browse files

socketio-openiot: Remove possible unallocation of unknown memory



When opening a socketio, it was possible to free
memory that had not been allocated. The logic has been changed
to set `socket_io_instance` to NULL as default, with extra
checks in place to ensure the location in memory is allocated
before attempting to free the address.

Signed-off-by: Jack Styles's avatarJack Styles <jack.styles@arm.com>
parent 5f565a9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment