Fix checkError() function
Removed C.free() from checkError()
Merge pull request #11 from sshikaree/master

Fix checkError() function