]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix unbalanced lock when serializing CDR variables
authorMatthew Jordan <mjordan@digium.com>
Tue, 23 Jul 2013 00:16:59 +0000 (00:16 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 23 Jul 2013 00:16:59 +0000 (00:16 +0000)
I'm only surprised that this didn't cause larger problems.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395089 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cdr.c

index 056ca32a9c83ae0ed1d997f70089c0eedabdaf91..2e6209551d5c2cfd856f954b008cf068e86a5b6c 100644 (file)
@@ -3054,7 +3054,7 @@ int ast_cdr_serialize_variables(const char *channel_name, struct ast_str **buf,
                        total++;
                }
        }
-
+       ao2_unlock(cdr);
        return total;
 }