fixed memory leak
Merge pull request #17 from slove13/steven_updates_export_to_lewos

fixed memory leak!