aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-07-15 10:51:26 +0000
committerLev Walkin <vlm@lionet.info>2004-07-15 10:51:26 +0000
commit246a2afd759f859dce9dbd78970cbcee72be9c82 (patch)
treeab7daec9dce90f98302d563791a7a0775b1f3c6d /skeletons
parent356314872aafa11be7d532b5db14a1294ae23ad0 (diff)
proper free()
Diffstat (limited to 'skeletons')
-rw-r--r--skeletons/constr_SET_OF.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/skeletons/constr_SET_OF.c b/skeletons/constr_SET_OF.c
index e398db8b..ff628d21 100644
--- a/skeletons/constr_SET_OF.c
+++ b/skeletons/constr_SET_OF.c
@@ -498,7 +498,9 @@ SET_OF_free(asn1_TYPE_descriptor_t *td, void *ptr, int contents_only) {
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);