commit 736f84b2d539857f7fdd0e42353af80b4dccfe8d
parent cd4d8202016bd3eb5ed9144c8945edaba73c8cf4
Author: Boqin Qin <bobbqqin@bupt.edu.cn>
Date: Mon, 20 Apr 2020 23:47:34 +0800
hugolib: Add Unlock before panic
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
@@ -987,6 +987,7 @@ func (m *contentChangeMap) add(dirname string, tp bundleDirType) {
case bundleLeaf:
m.leafBundles.Insert(dirname, true)
default:
+ m.mu.Unlock()
panic("invalid bundle type")
}
m.mu.Unlock()