CRM-19798 fix memory leak on EntityTag.get
authoreileen <emcnaughton@wikimedia.org>
Wed, 31 Jan 2018 04:53:49 +0000 (17:53 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 6 Jun 2018 21:25:56 +0000 (09:25 +1200)
commitffcc1d113643a89dff6a7a7bf1fb3665de1cb751
tree4639193abb0d62b5d547fd81d976a94dfaac0f89
parent400d5b667cf012daae89677038ea6cb4f5e47658
CRM-19798 fix memory leak on EntityTag.get

This is an alternate methodology using __destruct on the DAO object.

Note that I have found some places bypass this - ie.

```
   $rule = new CRM_ACL_BAO_ACL();
   $rule->query($query);
```

But I think that is a pretty clumsy construct & we should swap to
CRM_Core_DAO::executeQuery();
CRM/Contact/BAO/Contact.php
CRM/Contact/Import/Parser.php
CRM/Core/BAO/RecurringEntity.php
CRM/Core/DAO.php
CRM/Dedupe/Merger.php
tests/phpunit/CRM/Core/DAOTest.php
tests/phpunit/api/v3/EntityTagTest.php