summaryrefslogtreecommitdiffstats
path: root/src/AFC.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/AFC.c')
-rw-r--r--src/AFC.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AFC.c b/src/AFC.c
index dfe8af7..b24c331 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -637,7 +637,8 @@ iphone_error_t iphone_afc_get_file_attr(iphone_afc_client_t client, const char *
stbuf->st_uid = getuid();
stbuf->st_gid = getgid();
- ret = iphone_afc_close_file(client, file);
+ free(file);
+ ret = IPHONE_E_SUCCESS;
}
return ret;
}