Commit 8bad8b1e authored by Monish Deb's avatar Monish Deb Committed by GitHub
Browse files

Merge pull request #10537 from PalanteJon/20754

CRM-20754 - Clear memory leak in CSV CLI import
parents 1f591266 39a545dc
......@@ -430,6 +430,10 @@ class civicrm_cli_csv_file extends civicrm_cli {
continue;
}
$this->row++;
if ($this->row % 1000 == 0) {
// Reset PEAR_DB_DATAOBJECT cache to prevent memory leak
CRM_Core_DAO::freeResult();
}
$params = $this->convertLine($data);
$this->processLine($params);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment