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 <jack.styles@arm.com>
Loading
Please register or sign in to comment