X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPseudoConstant.php;h=28984e107d1c2d7571f2c3e47701901e8178e760;hb=7099e2ce64d746e08d23cf9aec291c15cde75859;hp=0af4bd1e105fa78cb1e19915f544dcdc8468fa14;hpb=144dacf19067161923f93ddd7178bb938b04c969;p=civicrm-core.git diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 0af4bd1e10..28984e107d 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -220,14 +220,12 @@ class CRM_Core_PseudoConstant { if ($options && $flip) { $options = array_flip($options); } - $customField->free(); return $options; } // Core field: load schema $dao = new $daoName(); $fieldSpec = $dao->getFieldSpec($fieldName); - $dao->free(); // Ensure we have the canonical name for this field $fieldName = CRM_Utils_Array::value('name', $fieldSpec, $fieldName); @@ -313,7 +311,6 @@ class CRM_Core_PseudoConstant { // Get list of fields for the option table $dao = new $daoName(); $availableFields = array_keys($dao->fieldKeys()); - $dao->free(); $select = "SELECT %1 AS id, %2 AS label"; $from = "FROM %3"; @@ -375,7 +372,6 @@ class CRM_Core_PseudoConstant { while ($dao->fetch()) { $output[$dao->id] = $dao->label; } - $dao->free(); // Localize results if (!empty($params['localize']) || $pseudoconstant['table'] == 'civicrm_country' || $pseudoconstant['table'] == 'civicrm_state_province') { $I18nParams = [];