Commit 1dbcc9fc4e6f5264d5bb46f6d7f744eb4a4063e4

Russell Belfer 2012-01-11T21:07:16

Fix several memory issues This contains fixes for several issues discovered by MSVC and by valgrind, including some bad data access, some memory leakage (in where certain files were not being successfully added to the cache), and some code simplification.