Commit Graph

10 Commits

Author SHA1 Message Date
Bi-Ruei, Chiu b9adfc5f91 Free memory allocated in various functions
1. Add 'ref_cnt' field to asn1p_expr_t.
2. Initialize 'ref_cnt' field to zero when asn1p_expr_t is allocated.
3. Increase 'ref_cnt' field when asn1p_expr_t is cloned by asn1p_value_fromtype().
4. If 'ref_cnt' field of asn1p_expr_t is larger than zero, then asn1p_expr_free() only decrease its value.
5. Free memory pointed by fields of asn1p_expr_t and itself when 'ref_cnt' is zero and asn1p_expr_free() called.
6. Call asn1p_delete(asn) in main().
2016-11-09 00:17:25 +08:00
Lev Walkin a9532f4d2b moved -DASN_PDU_COLLECTION into compiler 2006-09-17 04:52:50 +00:00
Lev Walkin 5045dfaba4 ObjectSets 2006-03-21 09:41:28 +00:00
Lev Walkin a00d6b3714 refactored parameterization support 2006-03-21 03:40:38 +00:00
Lev Walkin 84fbd7218b fixes for gcc 4.x 2005-06-15 18:41:50 +00:00
Lev Walkin 774ee7ea33 fixed BIT STRING value cloning 2005-04-13 12:47:35 +00:00
Lev Walkin 1e448d3d33 Support for some CharsDefn 2005-03-24 14:26:38 +00:00
Lev Walkin d21c5058fc different type name for the big integer 2004-09-29 13:18:09 +00:00
Lev Walkin 9c974183f7 DEFAULT type support 2004-09-15 11:59:51 +00:00
Lev Walkin f15320bf6b Initial revision 2004-06-03 03:38:44 +00:00