Fixes #167: Check if driver is unloaded when freeing array
Merge pull request #170 from umar456/devel

Fixes #167: Check if driver is unloaded when freeing array