close the magic database that has been opened
Merge pull request #355 from swackhamer/upstream-fix

Fix memory leak if using a old version of python-magic