Commit 9b5df848 authored by Lev Walkin's avatar Lev Walkin

asn1p_free -> asn1p_delete

parent e9f99caf
...@@ -52,7 +52,7 @@ asn1p_new() { ...@@ -52,7 +52,7 @@ asn1p_new() {
void void
asn1p_free(asn1p_t *asn) { asn1p_delete(asn1p_t *asn) {
if(asn) { if(asn) {
asn1p_module_t *mod; asn1p_module_t *mod;
while((mod = TQ_REMOVE(&(asn->modules), mod_next))) while((mod = TQ_REMOVE(&(asn->modules), mod_next)))
......
...@@ -93,7 +93,7 @@ typedef struct asn1p_s { ...@@ -93,7 +93,7 @@ typedef struct asn1p_s {
} asn1p_t; } asn1p_t;
asn1p_t *asn1p_new(void); asn1p_t *asn1p_new(void);
void asn1p_free(asn1p_t *asn); void asn1p_delete(asn1p_t *asn);
#endif /* ASN1_PARSER_MODULE_H */ #endif /* ASN1_PARSER_MODULE_H */
...@@ -56,7 +56,7 @@ asn1p_parse_buffer(const char *buffer, int size /* = -1 */, enum asn1p_flags fla ...@@ -56,7 +56,7 @@ asn1p_parse_buffer(const char *buffer, int size /* = -1 */, enum asn1p_flags fla
if(_asn1p_fix_modules(a, "-")) if(_asn1p_fix_modules(a, "-"))
return NULL; /* FIXME: destroy (a) */ return NULL; /* FIXME: destroy (a) */
} else if(a) { } else if(a) {
asn1p_free(a); asn1p_delete(a);
a = NULL; a = NULL;
} }
...@@ -113,7 +113,7 @@ asn1p_parse_file(const char *filename, enum asn1p_flags flags) { ...@@ -113,7 +113,7 @@ asn1p_parse_file(const char *filename, enum asn1p_flags flags) {
if(_asn1p_fix_modules(a, filename)) if(_asn1p_fix_modules(a, filename))
return NULL; /* FIXME: destroy (a) */ return NULL; /* FIXME: destroy (a) */
} else if(a) { } else if(a) {
asn1p_free(a); asn1p_delete(a);
a = NULL; a = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment