diff options
author | erdgeist <> | 2008-12-07 03:50:51 +0000 |
---|---|---|
committer | erdgeist <> | 2008-12-07 03:50:51 +0000 |
commit | c6947b160f99278057df0770b849b46264b72229 (patch) | |
tree | 8c5e543648458f7368d51906c53a9e1b45a8c364 /ot_accesslist.c | |
parent | ad8c9ee1efac171e5f3a8f41a630254ac88357a8 (diff) |
Handle program end more politely
Diffstat (limited to 'ot_accesslist.c')
-rw-r--r-- | ot_accesslist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index f4c21c5..3b8e8a9 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
@@ -23,6 +23,10 @@ | |||
23 | char *g_accesslist_filename = NULL; | 23 | char *g_accesslist_filename = NULL; |
24 | static ot_vector accesslist; | 24 | static ot_vector accesslist; |
25 | 25 | ||
26 | static void access_list_deinit( void ) { | ||
27 | accesslist_reset( ); | ||
28 | } | ||
29 | |||
26 | static void accesslist_reset( void ) { | 30 | static void accesslist_reset( void ) { |
27 | free( accesslist.data ); | 31 | free( accesslist.data ); |
28 | byte_zero( &accesslist, sizeof( accesslist ) ); | 32 | byte_zero( &accesslist, sizeof( accesslist ) ); |