Use the size of the buffer not the pointer in a call to mem_free().
authorjsg <jsg@openbsd.org>
Mon, 4 May 2015 09:43:51 +0000 (09:43 +0000)
committerjsg <jsg@openbsd.org>
Mon, 4 May 2015 09:43:51 +0000 (09:43 +0000)
ok miod@ and guenther@ who both pointed out this argument is unused.

lib/libc/rpc/clnt_raw.c

index f0a98ad..bddc8d9 100644 (file)
@@ -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;