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

socketio-openiot: Fix freeing of unallocated memory



Changed the memory allocation of `socket_io_instance` from
`malloc` to `calloc` to ensure all attributes are zero
initialized and avoid attempting to free unallocated memory
in the event the linked list cannot be created.

Signed-off-by: Jack Styles's avatarJack Styles <jack.styles@arm.com>
parent bf9c9f91
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