mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2001-08-22 Jakub Jelinek <jakub@redhat.com> * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating buf. Free resources on failure. * sunrpc/svc_unix.c (svcunix_create): Free resources on failure. (makefd_xprt): Likewise. * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise. * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise. * sunrpc/auth_unix.c (authunix_create): Likewise. 2001-08-21 Jakub Jelinek <jakub@redhat.com> * string/strnlen.c: Remove. * sysdeps/generic/strnlen.c: New. * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
This commit is contained in:
@ -183,6 +183,8 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize)
|
||||
else
|
||||
#endif
|
||||
(void) fputs (_("svctcp_create: out of memory\n"), stderr);
|
||||
mem_free (r, sizeof (*r));
|
||||
mem_free (xprt, sizeof (SVCXPRT));
|
||||
return NULL;
|
||||
}
|
||||
r->sendsize = sendsize;
|
||||
@ -225,6 +227,8 @@ makefd_xprt (int fd, u_int sendsize, u_int recvsize)
|
||||
else
|
||||
#endif
|
||||
(void) fputs (_("svc_tcp: makefd_xprt: out of memory\n"), stderr);
|
||||
mem_free (xprt, sizeof (SVCXPRT));
|
||||
mem_free (cd, sizeof (struct tcp_conn));
|
||||
return NULL;
|
||||
}
|
||||
cd->strm_stat = XPRT_IDLE;
|
||||
|
Reference in New Issue
Block a user