From 736f84b2d539857f7fdd0e42353af80b4dccfe8d Mon Sep 17 00:00:00 2001 From: Boqin Qin Date: Mon, 20 Apr 2020 23:47:34 +0800 Subject: [PATCH] hugolib: Add Unlock before panic --- hugolib/hugo_sites.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 9ff4d36cd..3183242b7 100644 --- 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()