Skip to content

Commit

Permalink
bug: fix the memory leak of linked-list-buffer
Browse files Browse the repository at this point in the history
Fixes #420
  • Loading branch information
panjf2000 committed Jan 13, 2023
1 parent 72b6e72 commit 4b6dfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/buffer/linkedlist/linked_list_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (llb *Buffer) Reset() {
llb.tail = nil
llb.size = 0
llb.bytes = 0
llb.bs = llb.bs[:0]
llb.bs = nil
}

// pop returns and removes the head of l. If l is empty, it returns nil.
Expand Down

0 comments on commit 4b6dfdc

Please sign in to comment.