diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-03 06:50:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-03 06:50:29 +0000 |
commit | 5cab98a552d03dd2c7a566504b72afb11b89c84d (patch) | |
tree | d522ff9f2cc2db7e245645da75821e6ef16604d2 /lib/libc/rpc/xdr_rec.c | |
parent | e823d2c765133cc0851045eae69fa841c7bae557 (diff) |
plug many memory leaks
Diffstat (limited to 'lib/libc/rpc/xdr_rec.c')
-rw-r--r-- | lib/libc/rpc/xdr_rec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/xdr_rec.c b/lib/libc/rpc/xdr_rec.c index 68ff3622cbe..ba07613c975 100644 --- a/lib/libc/rpc/xdr_rec.c +++ b/lib/libc/rpc/xdr_rec.c @@ -27,7 +27,7 @@ * Mountain View, California 94043 */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: xdr_rec.c,v 1.6 1998/05/20 23:50:02 deraadt Exp $"; +static char *rcsid = "$OpenBSD: xdr_rec.c,v 1.7 2001/03/03 06:50:28 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -159,6 +159,7 @@ xdrrec_create(xdrs, sendsize, recvsize, tcp_handle, readit, writeit) rstrm->the_buffer = mem_alloc(sendsize + recvsize + BYTES_PER_XDR_UNIT); if (rstrm->the_buffer == NULL) { (void)fprintf(stderr, "xdrrec_create: out of memory\n"); + free(rstrm); return; } for (rstrm->out_base = rstrm->the_buffer; |