diff --git a/src/utils_vl_lookup.c b/src/utils_vl_lookup.c
index 8180d0d9ea60380b3c4705eab4654615ea2c9bf3..b15dcf0225bb66257fbb4303a663df9e49bebc31 100644 (file)
--- a/src/utils_vl_lookup.c
+++ b/src/utils_vl_lookup.c
{
/* 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);