Skip to content
Commit 6ebc1960 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Johan Hedberg
Browse files

net: sockets: getaddrinfo: use k_ variants for memory allocation



The rest of the network (and generally Zephyr subsystem code) use the k_
prefixed variants for memory allocation, which results in data goin in
the _system_heap rather than the stdlib z_malloc_heap.

The code in getaddrinfo use the z_ ones as well apart from the actual
getaddrinfo implementation, which seems like an oversight, change it to
use k_calloc and k_free as well.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 13bdae0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment