Modified hex_string_to_bin
Fixed memory leaks and removed repeated code
Fixed build
Merge pull request #720 from nurupo/master

Fixed some memory leaks