# Sorting out memory leakage

**URL:** https://community.freefem.org/t/sorting-out-memory-leakage/1745
**Category:** General Discussion
**Created:** [May 14, 2022, 3:34pm UTC](https://community.freefem.org/t/sorting-out-memory-leakage/1745 "2022-05-14T15:34:44Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![aszaboa](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aszaboa/32/2918_2.png) [@aszaboa](https://community.freefem.org/u/aszaboa)
#### Post date: [May 20, 2022, 1:15pm UTC](https://community.freefem.org/t/sorting-out-memory-leakage/1745/15 "2022-05-20T13:15:12Z")

</div>

Thanks for the tip! This was indeed the problem!

Yes, I could reproduce the same behavior on different machines too. In each case, I used openmpi installed with `apt-get install libopenmpi-dev` . Based on your suggestion, I removed openmpi, and installed mpich also with `apt-get`, then recompiled both PETSc-SLEPc and FreeFem. This solved the memory leakage. Furthermore, now that I use mpich instead of openmpi, the programs do not start sleeping processes (these I mentioned in [this](https://community.freefem.org/t/number-of-processes-and-memory-usage/1551) post) . Moreover, I think my programs also run faster!

Thanks for the help, I really appreciate it!

---

_[View the full topic](https://community.freefem.org/t/sorting-out-memory-leakage/1745)._
