Memory Size of 33554432 Bytes Exhausted

I got the following message when I tried to upgrade to the latest version of WordPress through the dashboard:

Fatal error: Allowed memory size of 33554432 bytes exhausted

Thankfully, it was an easy fix. I simply added the following line to the wp-config.php file:

define('WP_MEMORY_LIMIT', '64M');

As always, thanks to the good people in the WordPress forums for discussing this topic.