Memory leak in API create Contact
We have been running this patch in production for some months to address the memory leak

https://github.com/civicrm/civicrm-core/pull/11615

When we first deployed it we hit a bug on the use of cloning the DAO in export. I removed that place however there is one remaining when exporting related contacts and I closed the PR until I had a chance to address that

      $allRelContactArray[$rel][$allRelContactDAO-&gt;refContact] = clone($allRelContactDAO);


I've now updated for that issue &amp; re-submitted - https://github.com/civicrm/civicrm-core/pull/12276