Skip to content
Commit d0abd9a1 authored by Noah Pendleton's avatar Noah Pendleton Committed by Alberto Escolar
Browse files

native_posix: Fix realloc potential leak



Fix a possible leak if `realloc` fails here; check the result of the
`realloc` call before updating the pointer, so it can be freed in the
failure case.

Signed-off-by: default avatarNoah Pendleton <noah.pendleton@gmail.com>
parent 9bb7da06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment