fixing some memleaks
copy-paste error
add assert in case ftell fails
fix typo
fix coverity issues
Merge remote-tracking branch 'upstream/master'
Merge pull request #37 from KroArtem/master

Fix coverity issues (memleaks, copy-paste error)