unified release

This commit is contained in:
Darien Raymond committed 2016-12-27 21:33:34 +01:00
1 parent 5769df496b
commit c68da6a0e8
6 files changed
+27 -25

No files matched your search

+5 -6
View File
@@ -19,10 +19,9 @@ type ErrorLog struct {
}
func (v *ErrorLog) Release() {
for index := range v.Values {
v.Values[index] = nil
for _, val := range v.Values {
common.Release(val)
}
v.Values = nil
}
func (v *ErrorLog) String() string {
@@ -37,9 +36,9 @@ type AccessLog struct {
}
func (v *AccessLog) Release() {
v.From = nil
v.To = nil
v.Reason = nil
common.Release(v.From)
common.Release(v.To)
common.Release(v.Reason)
}
func (v *AccessLog) String() string {