module-rtp: fix fd leak in error case

This commit is contained in:
Wim Taymans 2023-03-16 12:28:51 +01:00
parent 1c18e8aa69
commit 167681104b

View file

@ -272,6 +272,7 @@ static int make_socket(const struct sockaddr* sa, socklen_t salen, char *ifname)
} }
return fd; return fd;
error: error:
close(fd);
return res; return res;
} }