Skip to content
Commit 5cea3802 authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: lib: zperf: Fix socket leak during socket setup



During socket setup, if one of the setsockopt() calls failed, the
function would return an error w/o closing the socket. That's wrong, as
in case of errors the function should clean up any resources it
allocated, the socket file descriptor is lost otherwise and resources
are leaked.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 62368ba4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment