diff options
Diffstat (limited to 'ot_accesslist.c')
-rw-r--r-- | ot_accesslist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index 2e3778f..48de873 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
@@ -56,8 +56,9 @@ static void accesslist_readfile( void ) { | |||
56 | for the maximum amount of them */ | 56 | for the maximum amount of them */ |
57 | accesslist_new->size = 0; | 57 | accesslist_new->size = 0; |
58 | info_hash = accesslist_new->list = malloc( ( maplen / 41 ) * 20 ); | 58 | info_hash = accesslist_new->list = malloc( ( maplen / 41 ) * 20 ); |
59 | if( !accesslist_new ) { | 59 | if( !accesslist_new->list ) { |
60 | fprintf( stderr, "Warning: Not enough memory to allocate %zd bytes for accesslist buffer. May succeed later.\n", ( maplen / 41 ) * 20 ); | 60 | fprintf( stderr, "Warning: Not enough memory to allocate %zd bytes for accesslist buffer. May succeed later.\n", ( maplen / 41 ) * 20 ); |
61 | mmap_unmap( map, maplen); | ||
61 | free(accesslist_new); | 62 | free(accesslist_new); |
62 | return; | 63 | return; |
63 | } | 64 | } |