Permalink
Browse files

Rename owl_filterelement_free to owl_filterelement_cleanup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
  • Loading branch information...
1 parent 5cbc929 commit 75c7e8ebf74f416b938a43b531665fdcf251700f @andersk andersk committed Feb 28, 2010
Showing with 6 additions and 6 deletions.
  1. +3 −3 filter.c
  2. +3 −3 filterelement.c
View
@@ -113,7 +113,7 @@ static owl_filterelement * owl_filter_parse_primitive_expression(int argc, const
}
return fe;
err:
- owl_filterelement_free(fe);
+ owl_filterelement_cleanup(fe);
owl_free(fe);
return NULL;
}
@@ -151,7 +151,7 @@ owl_filterelement * owl_filter_parse_expression(int argc, const char *const *arg
return op1;
err:
if(op1) {
- owl_filterelement_free(op1);
+ owl_filterelement_cleanup(op1);
owl_free(op1);
}
return NULL;
@@ -261,7 +261,7 @@ void owl_filter_delete(owl_filter *f)
if (f == NULL)
return;
if (f->root) {
- owl_filterelement_free(f->root);
+ owl_filterelement_cleanup(f->root);
owl_free(f->root);
}
if (f->name)
View
@@ -323,15 +323,15 @@ int _owl_filterelement_is_toodeep(const owl_filterelement *fe, owl_dict *seen)
return rv;
}
-void owl_filterelement_free(owl_filterelement *fe)
+void owl_filterelement_cleanup(owl_filterelement *fe)
{
if (fe->field) owl_free(fe->field);
if (fe->left) {
- owl_filterelement_free(fe->left);
+ owl_filterelement_cleanup(fe->left);
owl_free(fe->left);
}
if (fe->right) {
- owl_filterelement_free(fe->right);
+ owl_filterelement_cleanup(fe->right);
owl_free(fe->right);
}
owl_regex_cleanup(&(fe->re));

0 comments on commit 75c7e8e

Please sign in to comment.