Commit 0c8858de8c82bae3fd88513724689a07d231da7e

Russell Belfer 2012-08-03T14:28:07

Fix valgrind issues and leaks This fixes up a number of problems flagged by valgrind and also cleans up the internal `git_submodule` allocation handling overall with a simpler model.