don't forget to destroy a cv
This commit is contained in:
parent
9286e800c1
commit
262a6229a0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sysv_msg.c,v 1.70 2015/11/06 02:26:42 pgoyette Exp $ */
|
||||
/* $NetBSD: sysv_msg.c,v 1.71 2016/09/05 14:13:50 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2006, 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sysv_msg.c,v 1.70 2015/11/06 02:26:42 pgoyette Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sysv_msg.c,v 1.71 2016/09/05 14:13:50 christos Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_sysv.h"
|
||||
|
@ -195,6 +195,7 @@ msgfini(void)
|
|||
sz = round_page(sz);
|
||||
uvm_km_free(kernel_map, v, sz, UVM_KMF_WIRED);
|
||||
|
||||
cv_destroy(&msg_realloc_cv);
|
||||
mutex_exit(&msgmutex);
|
||||
mutex_destroy(&msgmutex);
|
||||
|
||||
|
|
Loading…
Reference in New Issue