ref: 736f84b2d539857f7fdd0e42353af80b4dccfe8d
parent: cd4d8202016bd3eb5ed9144c8945edaba73c8cf4
author: Boqin Qin <bobbqqin@bupt.edu.cn>
date: Mon Apr 20 19:47:34 EDT 2020
hugolib: Add Unlock before panic
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -987,6 +987,7 @@
case bundleLeaf:
m.leafBundles.Insert(dirname, true)
default:
+ m.mu.Unlock()
panic("invalid bundle type")
}
m.mu.Unlock()