Navigation


Changeset 447:097bae83b07a in freeDiameter for freeDiameter/apps.c


Ignore:
Timestamp:
Jul 29, 2010, 11:36:40 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Forgot to cleanup the configuration on exit, spotted by valgrind

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/apps.c

    r105 r447  
    136136        return 0;
    137137}
     138
     139/* Remove the apps from a list */
     140int fd_app_empty(struct fd_list * list)
     141{
     142        TRACE_ENTRY("%p", list);
     143        CHECK_PARAMS( list );
     144       
     145        while (!FD_IS_LIST_EMPTY(list)) {
     146                struct fd_list * li = list->next;
     147                fd_list_unlink(li);
     148                free(li);
     149        }
     150       
     151        return 0;
     152}
Note: See TracChangeset for help on using the changeset viewer.