summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-03-28 11:38:28 +0100
committerGravatar Matt Colyer2009-04-13 08:49:07 -0700
commit77f242c547e2605a4aef1a8ff0089584ab7c4cb8 (patch)
tree8cfe0d896de8ef1e6df19aa7fc4b2c5b2b1969ed /src/ifuse.c
parent5db1ccc0676f47e404664a94d33f8212e4bbac9a (diff)
downloadifuse-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/ifuse.c')
-rw-r--r--src/ifuse.c13
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;