Skip to content

Commit

Permalink
free up allocators from allocatorPool
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 committed Nov 6, 2020
1 parent 3254976 commit d76aae9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dgraph/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ func main() {

// Run the program.
cmd.Execute()
// Free up allocators from alloctors from allocatorPool.
z.Done()

ticker.Stop()
fmt.Printf("Allocated Bytes at program end: %s\n", humanize.Bytes(uint64(z.NumAllocBytes())))
Expand Down

0 comments on commit d76aae9

Please sign in to comment.