mirror of https://github.com/acidanthera/audk.git
7053c3b3b3
The error return is triggered by one of two conditions: 1. rrecp is NULL (calloc failed) 2. strdup(dname) returns NULL Previously, the function just returned NULL. This patch adds a call to free rrecp before returning NULL. Since the free() function will properly do nothing when called with a NULL parameter, it is not necessary to separate the two tests into separate if clauses. Reported-by: Colin King <colin.king@canonical.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel <edk2-lists@mc2research.org> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> |
||
---|---|---|
.. | ||
BsdSocketLib.inf | ||
Ip6Addr_Any.c | ||
Ip6Addr_LinkLocal_AllNodes.c | ||
Ip6Addr_LinkLocal_AllRouters.c | ||
Ip6Addr_Loopback.c | ||
Ip6Addr_NodeLocal_AllNodes.c | ||
SocketInternals.h | ||
Socklib_internals.h | ||
accept.c | ||
base64.c | ||
bind.c | ||
close.c | ||
connect.c | ||
errno.c | ||
getaddrinfo.c | ||
gethostbydns.c | ||
gethostbyht.c | ||
gethostbynis.c | ||
gethostnamadr.c | ||
gethostname.c | ||
getnameinfo.c | ||
getnetbydns.c | ||
getnetbyht.c | ||
getnetbynis.c | ||
getnetnamadr.c | ||
getpeername.c | ||
getproto.c | ||
getprotoent.c | ||
getprotoname.c | ||
getservbyname.c | ||
getservbyport.c | ||
getservent.c | ||
getsockname.c | ||
getsockopt.c | ||
herror.c | ||
inet_net_ntop.c | ||
inet_net_pton.c | ||
inet_neta.c | ||
inet_pton.c | ||
listen.c | ||
map_v4v6.c | ||
ns_addr.c | ||
ns_name.c | ||
ns_netint.c | ||
ns_ntoa.c | ||
ns_parse.c | ||
ns_print.c | ||
ns_ttl.c | ||
nsap_addr.c | ||
poll.c | ||
read.c | ||
recv.c | ||
recvfrom.c | ||
res_comp.c | ||
res_config.h | ||
res_data.c | ||
res_debug.c | ||
res_init.c | ||
res_mkquery.c | ||
res_mkupdate.c | ||
res_query.c | ||
res_send.c | ||
res_update.c | ||
send.c | ||
sendto.c | ||
sethostname.c | ||
setsockopt.c | ||
shutdown.c | ||
socket.c | ||
write.c |