]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Change this flag... might not otherwise unlock in an OOM situation
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 17 Aug 2007 14:41:33 +0000 (14:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 17 Aug 2007 14:41:33 +0000 (14:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79885 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index 1405423c454a19d21697a49ea3de5aee67829f02..c0e1669e6c8ca610a4cf7a6f3b891d6285625a2b 100644 (file)
@@ -967,7 +967,7 @@ static struct ast_config *config_text_file_load(const char *database, const char
                                return CONFIG_STATUS_FILEUNCHANGED;
                        }
                }
-               if (cfmtime)
+               if (!ast_test_flag(&flags, CONFIG_FLAG_NOCACHE))
                        AST_LIST_UNLOCK(&cfmtime_head);
 
                /* If cfg is NULL, then we just want an answer */