From: Evan Prodromou Date: Sat, 4 Jul 2009 03:34:28 +0000 (-0400) Subject: clean up payload memory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eedfaa7d1a8e0f97175dfb832091250ca2e1f851;p=quix0rs-gnu-social.git clean up payload memory --- diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index ca62181203..bd1918ca98 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -116,6 +116,11 @@ class XMPPDaemon extends Daemon $this->conn->processUntil('session_start'); $this->log(LOG_DEBUG, "Sending reconnection presence."); $this->conn->presence('Send me a message to post a notice', 'available', null, 'available', 100); + unset($pl['xml']); + $pl['xml'] = null; + + $pl = null; + unset($pl); } function get_user($from) @@ -189,6 +194,12 @@ class XMPPDaemon extends Daemon $user->free(); unset($user); + + unset($pl['xml']); + $pl['xml'] = null; + + $pl = null; + unset($pl); } function is_self($from) @@ -334,6 +345,11 @@ class XMPPDaemon extends Daemon } break; } + unset($pl['xml']); + $pl['xml'] = null; + + $pl = null; + unset($pl); } function log($level, $msg)