mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
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:
parent
adf405496e
commit
7c125ebb7d
1 changed files with 2 additions and 3 deletions
|
@ -517,9 +517,8 @@ func getRstContent(content []byte) []byte {
|
||||||
|
|
||||||
cmd := exec.Command(path, "--leave-comments")
|
cmd := exec.Command(path, "--leave-comments")
|
||||||
cmd.Stdin = bytes.NewReader(cleanContent)
|
cmd.Stdin = bytes.NewReader(cleanContent)
|
||||||
out := bufferpool.GetBuffer()
|
var out bytes.Buffer
|
||||||
defer bufferpool.PutBuffer(out)
|
cmd.Stdout = &out
|
||||||
cmd.Stdout = out
|
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
jww.ERROR.Println(err)
|
jww.ERROR.Println(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue