FreePBX 13 reload error

Added that in, got this again.

Error(s) have occured, the following is the retrieve_conf output:
exit: 255
PHP Fatal error:  Allowed memory size of 262144 bytes 
exhausted (tried to allocate 196017 bytes) in 
/var/www/html/admin/libraries/php-asmanager.php on line 304
Whoops\Exception\ErrorException: Allowed memory size of 
262144 bytes exhausted (tried to allocate 196017 bytes) in file 
/var/www/html/admin/libraries/php-asmanager.php on line 304
Stack trace:
  1. () /var/www/html/admin/libraries/php-asmanager.php:304

That block currently looks like this

$meminfo = getSystemMemInfo();
if(!empty($meminfo['MemTotal'])) {
        $memt = preg_replace("/\D/","",$meminfo['MemTotal']);
        ini_set('memory_limit',$memt.'K');
} else {
        $memt = 0;
        ini_set('memory_limit','-1');
}