summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-05-04 09:43:52 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-05-04 09:43:52 +0000
commitc2043d1614cd85938caf9a376a07db80c34ed43c (patch)
treed0b79cf4a9a751f5ef6e175496387b2e998b8bf8 /lib/libc
parentb497ceba0b5809a04676d4bca52087e2de3cc1f7 (diff)
Use the size of the buffer not the pointer in a call to mem_free().
ok miod@ and guenther@ who both pointed out this argument is unused.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/clnt_raw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_raw.c b/lib/libc/rpc/clnt_raw.c
index f0a98ade96b..bddc8d94641 100644
--- a/lib/libc/rpc/clnt_raw.c
+++ b/lib/libc/rpc/clnt_raw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clnt_raw.c,v 1.17 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: clnt_raw.c,v 1.18 2015/05/04 09:43:51 jsg Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -124,7 +124,7 @@ clntraw_create(u_long prog, u_long vers)
return (client);
fail:
- mem_free((caddr_t)clntraw_private, sizeof(clntraw_private));
+ mem_free((caddr_t)clntraw_private, sizeof(*clntraw_private));
clntraw_private = NULL;
rpc_createerr.cf_stat = RPC_SYSTEMERROR;
rpc_createerr.cf_error.re_errno = errno;