mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -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.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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue