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 1405423..c0e1669 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 */