Skip to content

Commit

Permalink
cachedb_local: Fix missing lock_release() on error case
Browse files Browse the repository at this point in the history
Credits to @ryancaicse for the report in #2714
  • Loading branch information
liviuchircu committed Dec 20, 2021
1 parent ffe3b6f commit 1e5dd94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/cachedb_local/cachedb_local_replication.c
Expand Up @@ -196,6 +196,7 @@ int receive_sync_request(int node_id)
cluster_id, node_id, BIN_VERSION);
if (!sync_packet) {
LM_ERR("Can not create sync packet!\n");
lock_release(&col->col_htable[i].lock);
return -1;
}
bin_push_str(sync_packet, &col->col_name);
Expand Down

0 comments on commit 1e5dd94

Please sign in to comment.