COMPOSER_MEMORY_LIMIT=-1 composer update
php -d memory_limit=512M /usr/local/bin/composer update
php -d memory_limit=-1 path_to_composer.phar_that_threw_the_error update