diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-07-26 11:21:11 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-07-26 16:28:16 +0200 |
commit | c7252224c4fecfe8321f31b901e2510d98b657c4 (patch) | |
tree | 3a765c579bff92160ab08a1dc563055e4b18f9dc /config/defaultConfigProvider.go | |
parent | e09d7882c88812bedb2c2e66b68c7eed21213dbc (diff) | |
download | hugo-c7252224c4fecfe8321f31b901e2510d98b657c4.tar.gz hugo-c7252224c4fecfe8321f31b901e2510d98b657c4.zip |
Deprecate Blackfriday and fix a potential deadlock in config
Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.
Fixes #8792
Fixes #8791
Diffstat (limited to 'config/defaultConfigProvider.go')
-rw-r--r-- | config/defaultConfigProvider.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/defaultConfigProvider.go b/config/defaultConfigProvider.go index 05c3b9126..2391ec853 100644 --- a/config/defaultConfigProvider.go +++ b/config/defaultConfigProvider.go @@ -89,6 +89,7 @@ func (c *defaultConfigProvider) Get(k string) interface{} { c.mu.RLock() key, m := c.getNestedKeyAndMap(strings.ToLower(k), false) if m == nil { + c.mu.RUnlock() return nil } v := m[key] |