Skip to content

Commit

Permalink
clusterer: Fix missing lock_release() on "out of PKG"
Browse files Browse the repository at this point in the history
Credits to @ryancaicse for the report in #2714

(cherry picked from commit 3b26cc5)
  • Loading branch information
liviuchircu committed Dec 22, 2021
1 parent f4ba599 commit eb20d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/clusterer/node_info.c
Expand Up @@ -877,6 +877,7 @@ clusterer_node_t *api_get_next_hop(int cluster_id, int node_id)
lock_get(dest_node->lock);

if (add_clusterer_node(&ret, dest_node->next_hop) < 0) {
lock_release(dest_node->lock);
LM_ERR("Failed to allocate next hop\n");
return NULL;
}
Expand Down

0 comments on commit eb20d18

Please sign in to comment.