Changeset ddbbcffa for dict.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:42 PM (10 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
  • dict.c

    r35b6eb9 rddbbcffa  
    121121  found = _owl_dict_find_pos(d, k, &pos);
    122122  if (!found) return(NULL);
    123   owl_free(d->els[pos].k);
     123  g_free(d->els[pos].k);
    124124  v = d->els[pos].v;
    125125  for (i=pos; i<d->size-1; i++) {
     
    136136
    137137  for (i=0; i<d->size; i++) {
    138     owl_free(d->els[i].k);
     138    g_free(d->els[i].k);
    139139    if (elefree) (elefree)(d->els[i].v);
    140140  }
    141   if (d->els) owl_free(d->els);
     141  if (d->els) g_free(d->els);
    142142}
    143143
Note: See TracChangeset for help on using the changeset viewer.