projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79032bd
)
Don't unlock lock twice
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 16 Aug 2015 11:47:24 +0000
(13:47 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 26 Aug 2015 21:32:54 +0000
(23:32 +0200)
Fixes make check on OpenBSD
src/utils_vl_lookup.c
patch
|
blob
|
history
diff --git
a/src/utils_vl_lookup.c
b/src/utils_vl_lookup.c
index
8180d0d
..
b15dcf0
100644
(file)
--- a/
src/utils_vl_lookup.c
+++ b/
src/utils_vl_lookup.c
@@
-304,9
+304,10
@@
static int lu_handle_user_class (lookup_t *obj, /* {{{ */
{
/* call lookup_class_callback_t() and insert into the list of user objects. */
user_obj = lu_create_user_obj (obj, ds, vl, user_class);
- pthread_mutex_unlock (&user_class->lock);
- if (user_obj == NULL)
+ if (user_obj == NULL) {
+ pthread_mutex_unlock (&user_class->lock);
return (-1);
+ }
}
pthread_mutex_unlock (&user_class->lock);