# memory leak in TTree-\>fill() (multitree)

**URL:** <https://root-forum.cern.ch/t/memory-leak-in-ttree-fill-multitree/48078>\
**Category:** Newbie\
**Tags:** tree, root\
**Created:** [December 16, 2021, 7:53am UTC](https://root-forum.cern.ch/t/memory-leak-in-ttree-fill-multitree/48078 "2021-12-16T07:53:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [December 16, 2021, 8:48am UTC](https://root-forum.cern.ch/t/memory-leak-in-ttree-fill-multitree/48078/2 "2021-12-16T08:48:29Z")

</div>

Why do you fill tens of trees? Do you delete the trees in the end? Can you [run valgrind](https://root-forum.cern.ch/t/valgrind-and-root/28506) on your code and post the leak checker output?

---

_[View the full topic](https://root-forum.cern.ch/t/memory-leak-in-ttree-fill-multitree/48078)._
