Changeset ddbbcffa for filterelement.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:42 PM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
d4927a7
Parents:
35b6eb9
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:52:41)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:42)
Message:
Replace owl_free with g_free.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filterelement.c

    rd222c44 rddbbcffa  
    9494      tf=1;
    9595    }
    96     owl_free(perlrv);
     96    g_free(perlrv);
    9797  }
    9898  return tf;
     
    216216  fe->field=owl_strdup(field);
    217217  if(owl_regex_create(&(fe->re), re)) {
    218     owl_free(fe->field);
     218    g_free(fe->field);
    219219    fe->field = NULL;
    220220    return (-1);
     
    325325void owl_filterelement_cleanup(owl_filterelement *fe)
    326326{
    327   if (fe->field) owl_free(fe->field);
     327  if (fe->field) g_free(fe->field);
    328328  if (fe->left) {
    329329    owl_filterelement_cleanup(fe->left);
    330     owl_free(fe->left);
     330    g_free(fe->left);
    331331  }
    332332  if (fe->right) {
    333333    owl_filterelement_cleanup(fe->right);
    334     owl_free(fe->right);
     334    g_free(fe->right);
    335335  }
    336336  owl_regex_cleanup(&(fe->re));
Note: See TracChangeset for help on using the changeset viewer.