diff options
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 2d6518aed6..cd2a3b36b6 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -70,6 +70,24 @@ static struct dispatch_fns { } *dispatch_fns; /**************************************************************************** + Free global objects. +****************************************************************************/ + +void gfree_messsges(void) +{ + struct dispatch_fns *dfn, *next; + + /* delete the dispatch_fns list */ + dfn = dispatch_fns; + while( dfn ) { + next = dfn->next; + DLIST_REMOVE(dispatch_fns, dfn); + SAFE_FREE(dfn); + dfn = next; + } +} + +/**************************************************************************** Notifications come in as signals. ****************************************************************************/ |