Setting pointers to nil to prevent memory leak in Golang Setting pointers to nil to prevent memory leak in Golang go go