]> Cypherpunks repositories - gostls13.git/commit
net/textproto, sync: unlock mutexes appropriately before panics
authorBurtonQin <bobbqqin@gmail.com>
Wed, 8 Apr 2020 16:03:18 +0000 (16:03 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 8 Apr 2020 16:19:51 +0000 (16:19 +0000)
commit4874835232322713f23d2f10c083ae6fa893868b
tree73136f819488067d1efeaef8f6ec3ea897c33ee0
parent7a35d39b56dacf9ef248d3e77bc2f9e8147d6b75
net/textproto, sync: unlock mutexes appropriately before panics

Ensure mutexes are unlocked right before panics, where defers aren’t easily usable.

Change-Id: I67c9870e7a626f590a8de8df6c8341c5483918dc
GitHub-Last-Rev: bb8ffe538b3956892b55884fd64eadfce326f7b0
GitHub-Pull-Request: golang/go#37143
Reviewed-on: https://go-review.googlesource.com/c/go/+/218717
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/textproto/pipeline.go
src/sync/rwmutex_test.go