summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-21 10:03:04 +0000
committerErmal <eri@pfsense.org>2014-02-21 10:03:48 +0000
commitef60dfa541b7a2dde913c7ac400dcc39de71d67d (patch)
tree0e9f789747ad8585de06ac453885c63615f8109b /etc/inc/voucher.inc
parent4d3277443f335411afda0068c4811b35c67f2377 (diff)
downloadpfsense-ef60dfa541b7a2dde913c7ac400dcc39de71d67d.zip
pfsense-ef60dfa541b7a2dde913c7ac400dcc39de71d67d.tar.gz
Be friendly to memory
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 7541fff..a3f8caa 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -204,6 +204,7 @@ EOF;
$config['voucher'][$cpzone]['roll'] = $toreturn['voucher']['roll'];
write_config("Captive Portal Voucher database synchronized with {$url}");
voucher_configure_zone(true);
+ unset($toreturn['voucher']);
}
return $toreturn['timeleft'];
OpenPOWER on IntegriCloud