Fix memory leak

Call netimage_deinitialize to fix 20B memory leak
Merge pull request #1 from gitizenme/master

Fix memory leak