projects
/
idzebra-moved-to-github.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
depend include change.
[idzebra-moved-to-github.git]
/
dict
/
dclose.c
1
#include <sys/types.h>
2
#include <fcntl.h>
3
#include <unistd.h>
4
#include <stdio.h>
5
#include <stdlib.h>
6
7
#include <dict.h>
8
9
int dict_bf_close (Dict_BFile dbf)
10
{
11
int i;
12
dict_bf_flush_blocks (dbf, -1);
13
14
xfree (dbf->all_blocks);
15
xfree (dbf->all_data);
16
xfree (dbf->hash_array);
17
i = bf_close (dbf->bf);
18
xfree (dbf);
19
return i;
20
}