proper free()


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@53 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/constr_SET_OF.c b/skeletons/constr_SET_OF.c
index e398db8..ff628d2 100644
--- a/skeletons/constr_SET_OF.c
+++ b/skeletons/constr_SET_OF.c
@@ -498,7 +498,9 @@
 			if(memb_ptr)
 			element->type->free_struct(element->type, memb_ptr, 0);
 		}
-		list->count = 0;	/* Just in case */
+		list->count = 0;	/* No meaningful elements left */
+
+		asn_set_empty(list);	/* Remove (list->array) */
 
 		if(!contents_only) {
 			FREEMEM(ptr);