Revert "Use bufferpool in Rst handler"

This reverts commit d9bc233f1f.

This was hasty. We would need to make a copy to use the pool in this case.
This commit is contained in:
Bjørn Erik Pedersen 2016-07-10 19:41:16 +02:00
parent adf405496e
commit 7c125ebb7d

View file

@ -517,9 +517,8 @@ func getRstContent(content []byte) []byte {
cmd := exec.Command(path, "--leave-comments")
cmd.Stdin = bytes.NewReader(cleanContent)
out := bufferpool.GetBuffer()
defer bufferpool.PutBuffer(out)
cmd.Stdout = out
var out bytes.Buffer
cmd.Stdout = &out
if err := cmd.Run(); err != nil {
jww.ERROR.Println(err)
}