Skip to content

Commit 80eeb52

Browse files
committed
fraud_detection: Fix missing lock_release() on OOM error case
Credits to @ryancaicse for the report in #2714
1 parent 1e5dd94 commit 80eeb52

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

modules/fraud_detection/fraud_detection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ static int check_fraud(struct sip_msg *msg, str *user, str *number, int *pid)
335335
} else {
336336
if (shm_str_sync(&se->stats.last_dial, number) != 0) {
337337
lock_release(frd_seq_calls_lock);
338+
lock_release(&se->lock);
338339
LM_ERR("oom\n");
339340
rc = rc_error;
340341
goto out;

0 commit comments

Comments
 (0)