Fix possible deref of a prefiously freed pointer
Fix possible resource leaks
Fix possible resource leaks for incorrect KAP charts
Fix possible resource leaks
Fix resource leak on failure to load ENC chart update
Remove unnecesary check confusing code analysis tools
Fix the comparison - 0 is a valid file descriptor and would be leaked if returned
Fix leak on failure to open an ENC chart
Fix string overflow and possible out of bounds access
Fix a string overflow while slightly improving performance
Merge pull request #222 from nohal/cov

Fixes for some problems discovered by code analysis