Problem: zproto_codec selftest doesn't free the object

Solution: free the object at the end of the selftest