Update zsys.c

Add missing free
Merge pull request #770 from wysman/patch-3

Update zsys.c