Skip to content

Commit

Permalink
event_routing: 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

(cherry picked from commit 6ea748c)
  • Loading branch information
liviuchircu committed Dec 20, 2021
1 parent 3438cc2 commit 98bd485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/event_routing/ebr_data.c
Expand Up @@ -143,7 +143,7 @@ int init_ebr_event( ebr_event *ev )
if (evi_event_subscribe( ev->event_name, sock, 0, 0) < 0) {
LM_ERR("cannot subscribe to event %.*s\n",
ev->event_name.len, ev->event_name.s);
return -1;
goto error;
}

lock_release( &(ev->lock) );
Expand Down

0 comments on commit 98bd485

Please sign in to comment.