diff --git a/libasn1parser/asn1p_module.c b/libasn1parser/asn1p_module.c index 0202f0ff31a765b0a1eb1c6a30cdce625799d963..8a47df667755559df979fe7dd81783b3fae21b70 100644 --- a/libasn1parser/asn1p_module.c +++ b/libasn1parser/asn1p_module.c @@ -52,7 +52,7 @@ asn1p_new() { void -asn1p_free(asn1p_t *asn) { +asn1p_delete(asn1p_t *asn) { if(asn) { asn1p_module_t *mod; while((mod = TQ_REMOVE(&(asn->modules), mod_next))) diff --git a/libasn1parser/asn1p_module.h b/libasn1parser/asn1p_module.h index 618c6e7dfba6ede36bf25d85a4b9937465e5d1cd..5e7ce15dc554767a6305dfc019cd9aa988349812 100644 --- a/libasn1parser/asn1p_module.h +++ b/libasn1parser/asn1p_module.h @@ -93,7 +93,7 @@ typedef struct asn1p_s { } asn1p_t; asn1p_t *asn1p_new(void); -void asn1p_free(asn1p_t *asn); +void asn1p_delete(asn1p_t *asn); #endif /* ASN1_PARSER_MODULE_H */ diff --git a/libasn1parser/asn1parser.c b/libasn1parser/asn1parser.c index 6c8faf00d54a84ef5098e01f076d999ad46d01dd..a2e2ae28a9d7d5a09e881bd619fcff80e7c6660c 100644 --- a/libasn1parser/asn1parser.c +++ b/libasn1parser/asn1parser.c @@ -56,7 +56,7 @@ asn1p_parse_buffer(const char *buffer, int size /* = -1 */, enum asn1p_flags fla if(_asn1p_fix_modules(a, "-")) return NULL; /* FIXME: destroy (a) */ } else if(a) { - asn1p_free(a); + asn1p_delete(a); a = NULL; } @@ -113,7 +113,7 @@ asn1p_parse_file(const char *filename, enum asn1p_flags flags) { if(_asn1p_fix_modules(a, filename)) return NULL; /* FIXME: destroy (a) */ } else if(a) { - asn1p_free(a); + asn1p_delete(a); a = NULL; }