Skip to content

Commit

Permalink
Fixed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Mina Naguib committed Jun 13, 2014
1 parent 2051ca1 commit ccedf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (b *BulkIndexer) startDocChannel() {
func (b *BulkIndexer) send(buf *bytes.Buffer) {
//b2 := *b.buf
b.sendBuf <- buf
b.buf = new(bytes.Buffer)
b.buf.Reset()
b.docCt = 0
}

Expand Down

0 comments on commit ccedf47

Please sign in to comment.