From 5a72d346c12cee531e07fbad3c3481f1e53c9ace Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 19 Apr 2009 14:59:48 -0700 Subject: This is a fix for iphone_afc_get_file_attr. As the file is not opened when getting its information with afc_get_file_info, there's no need to close the file (because the handle is invalid). [#26 state:resolved] Signed-off-by: Matt Colyer --- src/AFC.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.1-32-gdbae