got rid of memory errors and most of the leaks

 - using valgrind
 - still a bunch of leaks in gram.y caused by
   blindly allocating a string
 - 55 leaks in my rc file