Commits
Muqun Yang committed d8dbb3c52f7
HFCFLIB-113, go over all codes to improve obvious error handling issues. Improvement includes: 1) use throw properly, 2) use try, catch block to release resources when exceptions occurs. 3) release file handles and newly allocated memory properly. 4) remove the exit call in the middle of code. 5) remove assert(0) in several inappropriate palces. 6) Use vector to replace [].