base58.cc: Fix many memory leaks
Merge pull request #5 from jgarzik/leak-fix

base58.cc: Fix many memory leaks