Fix mem leak in socks analyzer for bad addr types.
Fix input framework memory leaks.

Couldn't figure out a test case: gperftools didn't report them (maybe
due to threading?), but valgrind did.