From 77f242c547e2605a4aef1a8ff0089584ab7c4cb8 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Sat, 28 Mar 2009 11:38:28 +0100 Subject: Do not rely on libiphone wrongly exported symbol. Make free_dictionary part of ifuse. --- src/ifuse.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; -- cgit v1.1-32-gdbae