diff options
| author | 2014-02-08 15:57:19 +0100 | |
|---|---|---|
| committer | 2014-02-08 15:57:19 +0100 | |
| commit | 7fa620cce54f7fd187c477df080ebed33c818b07 (patch) | |
| tree | 0e5f70aa91f4e3e583af69041722fafbc1196b56 /app/Models/Feed.php | |
| parent | 7d9a813ed3465ef7175a05355e1ccaef878ab667 (diff) | |
SimplePie Fuite de mémoire PHP 5.2
https://github.com/marienfressinaud/FreshRSS/issues/415
http://simplepie.org/wiki/faq/i_m_getting_memory_leaks
(Pas testé)
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index c71fb41ae..e94ae2b3a 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -224,6 +224,9 @@ class FreshRSS_Feed extends Minz_Model { syslog(LOG_DEBUG, 'FreshRSS use cache for ' . $subscribe_url); $this->entries = array(); } + + $feed->__destruct(); //http://simplepie.org/wiki/faq/i_m_getting_memory_leaks + unset($feed); } } } @@ -273,6 +276,7 @@ class FreshRSS_Feed extends Minz_Model { $entry->loadCompleteContent($this->pathEntries()); $entries[] = $entry; + unset($item); } $this->entries = $entries; |
