commit | 7ebd67ce33bf7b09a322195363fff0f6afc77717 | [log] [tgz] |
---|---|---|
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | Thu Jul 15 10:51:26 2004 +0000 |
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | Thu Jul 15 10:51:26 2004 +0000 |
tree | ab7daec9dce90f98302d563791a7a0775b1f3c6d | |
parent | 79b08d5af5a0b39b5f9dd78e821916ee5a7e9a61 [diff] |
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);