diff options
| author | 2009-03-28 11:38:28 +0100 | |
|---|---|---|
| committer | 2009-04-13 08:49:07 -0700 | |
| commit | 77f242c547e2605a4aef1a8ff0089584ab7c4cb8 (patch) | |
| tree | 8cfe0d896de8ef1e6df19aa7fc4b2c5b2b1969ed /src | |
| parent | 5db1ccc0676f47e404664a94d33f8212e4bbac9a (diff) | |
| download | ifuse-77f242c547e2605a4aef1a8ff0089584ab7c4cb8.tar.gz ifuse-77f242c547e2605a4aef1a8ff0089584ab7c4cb8.tar.bz2 | |
Do not rely on libiphone wrongly exported symbol. Make free_dictionary part of ifuse.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ifuse.c | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/src/ifuse.c b/src/ifuse.c index fdb376f..5641e25 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -56,6 +56,19 @@ static int ifuse_getattr(const char *path, struct stat *stbuf)  	return res;  } +static void free_dictionary(char **dictionary) +{ +	int i = 0; + +	if (!dictionary) +		return; + +	for (i = 0; dictionary[i]; i++) { +		free(dictionary[i]); +	} +	free(dictionary); +} +  static int ifuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi)  {  	int i; | 
