diff options
author | asomers <asomers@FreeBSD.org> | 2014-03-28 15:09:35 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2014-03-28 15:09:35 +0000 |
commit | 31717f7c2c10a59b1c3baf95958b322e632d756c (patch) | |
tree | 03d9d6bf518b845da37cdd82ddd7a4987083e5d5 /cddl/contrib | |
parent | a44c2eaca9720203accafbc71e18fafe1cf9377a (diff) | |
download | FreeBSD-src-31717f7c2c10a59b1c3baf95958b322e632d756c.zip FreeBSD-src-31717f7c2c10a59b1c3baf95958b322e632d756c.tar.gz |
MFC r262912
cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c
Fix a memory leak in uu_avl_pool_create: pthread_mutex_init without
a corresponding pthread_mutex_destroy. It shows up, among other
places, when doing "zfs list".
Diffstat (limited to 'cddl/contrib')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c b/cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c index 308e920..5e78ece 100644 --- a/cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c +++ b/cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c @@ -128,6 +128,7 @@ uu_avl_pool_destroy(uu_avl_pool_t *pp) pp->uap_next->uap_prev = pp->uap_prev; pp->uap_prev->uap_next = pp->uap_next; (void) pthread_mutex_unlock(&uu_apool_list_lock); + (void) pthread_mutex_destroy(&pp->uap_lock); pp->uap_prev = NULL; pp->uap_next = NULL; uu_free(pp); |