diff options
author | 1999-10-29 14:08:49 +0000 | |
---|---|---|
committer | 1999-10-29 14:08:49 +0000 | |
commit | 93546ec11a04e3a82082fd879a54fbe48c659890 (patch) | |
tree | cccda981dc0e563f4dbead03529c8157384b7dd5 | |
parent | Define a memory type for pipes. (diff) | |
download | wireguard-openbsd-93546ec11a04e3a82082fd879a54fbe48c659890.tar.xz wireguard-openbsd-93546ec11a04e3a82082fd879a54fbe48c659890.zip |
Use M_PIPE instead of M_TEMP.
-rw-r--r-- | sys/kern/sys_pipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 00e7507c564..88472e3169c 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.19 1999/10/29 14:01:44 art Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.20 1999/10/29 14:08:49 art Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -113,9 +113,9 @@ sys_opipe(p, v, retval) struct pipe *rpipe, *wpipe; int fd, error; - rpipe = malloc(sizeof(*rpipe), M_TEMP, M_WAITOK); + rpipe = malloc(sizeof(*rpipe), M_PIPE, M_WAITOK); pipeinit(rpipe); - wpipe = malloc(sizeof(*wpipe), M_TEMP, M_WAITOK); + wpipe = malloc(sizeof(*wpipe), M_PIPE, M_WAITOK); pipeinit(wpipe); error = falloc(p, &rf, &fd); @@ -739,7 +739,7 @@ pipeclose(cpipe) cpipe->pipe_buffer.size); #endif } - free(cpipe, M_TEMP); + free(cpipe, M_PIPE); } } #endif |