tpl: Fix race condition in regexp cache
authorCameron Moore <moorereason@gmail.com>
Mon, 14 Mar 2016 04:17:42 +0000 (23:17 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 14 Mar 2016 15:58:08 +0000 (16:58 +0100)
commitaedb13b2195fbc0d535d366e5b2fa6369b11677c
tree9897d45ba4fdf80cf911c2b5e39573dc97d5ea8d
parentf6c3ca8b2aba93945490d46e802667e98c68a398
tpl: Fix race condition in regexp cache

Protect regular expression cache with a mutex.

Fixes #1973
tpl/template_funcs.go