summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-29 19:42:17 +0000
committerErmal <eri@pfsense.org>2013-01-29 19:42:17 +0000
commit97e0cb612624cf460e984afeca79cac47e433685 (patch)
treef8c40e7ca0acedf965c865fea1d1628929e5c710 /usr/local/captiveportal
parent7d1f2eace0a951edd6ac2f5679d14f55ab212d85 (diff)
downloadpfsense-97e0cb612624cf460e984afeca79cac47e433685.zip
pfsense-97e0cb612624cf460e984afeca79cac47e433685.tar.gz
Use unset to free resources now that php does not use exit on CP
Diffstat (limited to 'usr/local/captiveportal')
-rw-r--r--usr/local/captiveportal/radius_accounting.inc1
-rw-r--r--usr/local/captiveportal/radius_authentication.inc1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc
index 2485f06..4a167e7 100644
--- a/usr/local/captiveportal/radius_accounting.inc
+++ b/usr/local/captiveportal/radius_accounting.inc
@@ -178,6 +178,7 @@ function RADIUS_ACCOUNTING_START($ruleno, $username, $sessionid, $radiusservers,
// close OO RADIUS_ACCOUNTING
$racct->close();
+ unset($racct);
return $retvalue ;
diff --git a/usr/local/captiveportal/radius_authentication.inc b/usr/local/captiveportal/radius_authentication.inc
index 92890b8..8727815 100644
--- a/usr/local/captiveportal/radius_authentication.inc
+++ b/usr/local/captiveportal/radius_authentication.inc
@@ -205,6 +205,7 @@ function RADIUS_AUTHENTICATION($username,$password,$radiusservers,$clientip,$cli
// close OO RADIUS_AUTHENTICATION
$rauth->close();
+ unset($rauth);
return $retvalue;
OpenPOWER on IntegriCloud