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:
Noah Pendleton <noah.pendleton@gmail.com>
Loading
Please sign in to comment