summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/auth_unix.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-03-03 06:50:27 +0000
committerderaadt <deraadt@openbsd.org>2001-03-03 06:50:27 +0000
commitf590e579b16597178d79f88279cc43193cd1a94d (patch)
tree873f81746225d7748ed10b52f93f968f254c0285 /lib/libc/rpc/auth_unix.c
parentChange ownership of mux devices also, eventually X will move to (diff)
downloadwireguard-openbsd-f590e579b16597178d79f88279cc43193cd1a94d.tar.xz
wireguard-openbsd-f590e579b16597178d79f88279cc43193cd1a94d.zip
plug many memory leaks
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-rw-r--r--lib/libc/rpc/auth_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c
index 50ba106ba0d..21620785ec9 100644
--- a/lib/libc/rpc/auth_unix.c
+++ b/lib/libc/rpc/auth_unix.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: auth_unix.c,v 1.12 2000/08/24 17:03:20 deraadt Exp $";
+static char *rcsid = "$OpenBSD: auth_unix.c,v 1.13 2001/03/03 06:50:28 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -119,6 +119,7 @@ authunix_create(machname, uid, gid, len, aup_gids)
#ifndef KERNEL
if (au == NULL) {
(void)fprintf(stderr, "authunix_create: out of memory\n");
+ free(auth);
return (NULL);
}
#endif