Fixed uninitialized variable bug.
Fixed some memory leaks in the config parser.