diff options
author | Jonathan Beck | 2008-08-12 22:02:18 +0200 |
---|---|---|
committer | Jonathan Beck | 2008-08-21 18:49:51 +0200 |
commit | 09e5d87069f16e60918d71a8d00b891e2981f166 (patch) | |
tree | 19197c029c1703ceb41f99f1719fa7a22dca01c5 /src/ifuse.c | |
parent | a885ca9dbe929781144f3f1a00e565dfa31f68c6 (diff) | |
download | libplist-09e5d87069f16e60918d71a8d00b891e2981f166.tar.gz libplist-09e5d87069f16e60918d71a8d00b891e2981f166.tar.bz2 |
fix missing free in dispatch_AFC_packet
Diffstat (limited to 'src/ifuse.c')
-rw-r--r-- | src/ifuse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index 2a33405..a9d1c9a 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -63,6 +63,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) { stbuf->st_blocks = file->blocks; stbuf->st_uid = getuid(); stbuf->st_gid = getgid(); + + afc_close_file(afc,file); } return res; @@ -205,7 +207,7 @@ void *ifuse_init(struct fuse_conn_info *conn) { port = lockdownd_start_service(control, "com.apple.afc"); if (!port) { lockdownd_close(control); - free_iphone(phone); + free_iPhone(phone); fprintf(stderr, "Something went wrong when starting AFC."); return NULL; } |