This commit is contained in:
Jay 2018-10-09 23:49:59 +08:00
parent 38bc2f7639
commit 4c3fe82c82

View File

@ -351,17 +351,10 @@ func lottery(sub, txt string, s *lineobj.SourceObject) (res string) {
dest[val] = arr[idx] dest[val] = arr[idx]
arr[idx] = nil arr[idx] = nil
} }
arr = nil
data := dest[0] data := dest[0]
// set arr to nil
for i := range dest {
dest[i] = nil
}
arr = nil
dest = nil
perm = nil
conf := config.GetConf() conf := config.GetConf()
u := conf.URL u := conf.URL
if last := len(u); last > 0 && u[last-1] == '/' { if last := len(u); last > 0 && u[last-1] == '/' {