Changeset 5e5f08f for list.c


Ignore:
Timestamp:
Mar 7, 2010, 10:26:04 PM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0e57335
Parents:
8c59178
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 20:39:13)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:26:04)
Message:
Make owl_list_free_simple a special case of owl_list_cleanup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • list.c

    r8c59178 r5e5f08f  
    8181  int i;
    8282
    83   for (i=0; i<l->size; i++) {
    84     (elefree)(l->list[i]);
     83  if (elefree) {
     84    for (i = 0; i < l->size; i++) {
     85      (elefree)(l->list[i]);
     86    }
    8587  }
    8688  owl_free(l->list);
    8789}
    88 
    89 void owl_list_free_simple(owl_list *l)
    90 {
    91   if (l->list) owl_free(l->list);
    92 }
Note: See TracChangeset for help on using the changeset viewer.