Fix memory leak in NetString::ReadStringFromStream.
Fix memory leaks in the config parser.