Skip to content

Commit

Permalink
Release() => Free()
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Jun 30, 2017
1 parent 2f1a926 commit 506766d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zapcore/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func encodeError(key string, err error, enc ObjectEncoder) error {
case causer:
el := newErrArrayElem(e.Cause())
err := enc.AddArray(key+"Causes", el)
el.Release()
el.Free()
return err
}

Expand Down Expand Up @@ -94,7 +94,7 @@ func (errs errArray) MarshalLogArray(arr ArrayEncoder) error {

el := newErrArrayElem(errs[i])
arr.AppendObject(el)
el.Release()
el.Free()
}
return nil
}
Expand Down Expand Up @@ -122,7 +122,7 @@ func (e *errArrayElem) MarshalLogObject(enc ObjectEncoder) error {
return encodeError("error", e.err, enc)
}

func (e *errArrayElem) Release() {
func (e *errArrayElem) Free() {
e.err = nil
_errArrayElemPool.Put(e)
}

0 comments on commit 506766d

Please sign in to comment.