commit | eee27b2a38d6bb741d9de5e028d5b23e2f4ec4cf | [log] [tgz] |
---|---|---|
author | Sébastien Marie <semarie@users.noreply.github.com> | Sun Jan 25 15:12:28 2015 +0100 |
committer | Sébastien Marie <semarie@users.noreply.github.com> | Sun Jan 25 15:12:28 2015 +0100 |
tree | 6a212acaf3d5280f866d7ce52cd6ae448b32dab9 | |
parent | 4581b97809e7e545c38b996870a4e7284a620bc5 [diff] |
huge_node_locked don't have to unlock huge_mtx in src/huge.c, after each call of huge_node_locked(), huge_mtx is already unlocked. don't unlock it twice (it is a undefined behaviour).
diff --git a/src/huge.c b/src/huge.c index c4d1ebc..84a1ab2 100644 --- a/src/huge.c +++ b/src/huge.c
@@ -83,7 +83,6 @@ node = extent_tree_ad_search(&huge, &key); assert(node != NULL); assert(node->addr == ptr); - malloc_mutex_unlock(&huge_mtx); return (node); }