summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2018-01-04 10:30:48 -0500
committerCorey Farrell <git@cfware.com>2018-01-04 09:34:00 -0600
commitd73a3a176485d3f3edf1071a4a1ced13dfefc375 (patch)
treed433d3980f2a80b6e844f57a43ff6c24c3bb0458
parentd25a9bc7d32cc6e0b5c91f82bcb1e474adf1991c (diff)
res_pjsip_history: Add missing unlock to CLI command.
Change-Id: I872060a30543776a176a316309602d924a23eb29
-rw-r--r--res/res_pjsip_history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_history.c b/res/res_pjsip_history.c
index bcc4877f6..ffe1a1d88 100644
--- a/res/res_pjsip_history.c
+++ b/res/res_pjsip_history.c
@@ -1282,7 +1282,7 @@ static char *pjsip_show_history(struct ast_cli_entry *e, int cmd, struct ast_cli
}
entry = ao2_bump(AST_VECTOR_GET(vec, 0));
if (vec == &vector_history) {
- ast_mutex_lock(&history_lock);
+ ast_mutex_unlock(&history_lock);
}
}