# Should I manage pointers of double from ROOT::Math::Minimizer::X()

**URL:** <https://root-forum.cern.ch/t/should-i-manage-pointers-of-double-from-root-x/62828>\
**Category:** Newbie\
**Tags:** root\
**Created:** [February 6, 2025, 5:55am UTC](https://root-forum.cern.ch/t/should-i-manage-pointers-of-double-from-root-x/62828 "2025-02-06T05:55:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [February 6, 2025, 5:55am UTC](https://root-forum.cern.ch/t/should-i-manage-pointers-of-double-from-root-x/62828/1 "2025-02-06T05:55:22Z")

</div>

Dear experts

When I use a minimizer to minimize the function, I want to retrieve the parameters after it, this is how I did:

```auto
fFit->Minimize(); //fFit is a instantiation of ROOT::Math::Minimizer
double const* pars = fFit->X();
//some usage
//Should I delete pars here???

```

My question is should I manage the pointer by my self (delete it)?

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [February 6, 2025, 8:58am UTC](https://root-forum.cern.ch/t/should-i-manage-pointers-of-double-from-root-x/62828/2 "2025-02-06T08:58:25Z")

</div>

Hi,

No, you should not.

Best,  
D
