summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
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;