diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c index 6c5e4a1438fe7186b677b0c4012db225c24b2f0f..89dc34f2a531085b157ea773296722fb8bd9b1a7 100755 --- a/cdr/cdr_odbc.c +++ b/cdr/cdr_odbc.c @@ -88,7 +88,7 @@ static int odbc_log(struct ast_cdr *cdr) if ((!clid) || (!dcontext) || (!channel) || (!dstchannel) || (!lastapp) || (!lastdata) || (!uniqueid)) { ast_log(LOG_ERROR, "cdr_odbc: Out of memory error (insert fails)\n"); - ast_mutex_unlock(&odbc_locl); + ast_mutex_unlock(&odbc_lock); return -1; }