I have the same memory leak issue with my 2009 MacBook Pro, so I created a Bash script that checks to see if I have less than 100MB of free RAM, then performs a 'nice purge' if needed. Then I added a crontab to automatically run this check every 30 minutes, so I am hands-free now. From the terminal create a new file called free.sh with contents:
#!/bin/bash
free=`vm_stat | grep free | awk '{print $3}'`
freer=${free%%.*}
if [ "$freer" -lt "18000" ]
then
nice purge
fi
Next, from the terminal run this command:
crontab -e
Enter in the following and type in your username:
*/30 * * * * /Users/your-username-goes-here/free.sh
This tells cron to run your free.sh script every 30 minutes.