diff options
| author | 2009-04-19 14:59:48 -0700 | |
|---|---|---|
| committer | 2009-04-19 15:00:27 -0700 | |
| commit | 5a72d346c12cee531e07fbad3c3481f1e53c9ace (patch) | |
| tree | 8c3ae4a83d8b3e9c2f34e8f295d08e46252e7543 | |
| parent | 6671ca3d6de6a1fd27853e3b1ce7a81d568703f0 (diff) | |
| download | libimobiledevice-5a72d346c12cee531e07fbad3c3481f1e53c9ace.tar.gz libimobiledevice-5a72d346c12cee531e07fbad3c3481f1e53c9ace.tar.bz2 | |
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 <matt@colyer.name>
| -rw-r--r-- | src/AFC.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -637,7 +637,8 @@ iphone_error_t iphone_afc_get_file_attr(iphone_afc_client_t client, const char * | |||
| 637 | stbuf->st_uid = getuid(); | 637 | stbuf->st_uid = getuid(); |
| 638 | stbuf->st_gid = getgid(); | 638 | stbuf->st_gid = getgid(); |
| 639 | 639 | ||
| 640 | ret = iphone_afc_close_file(client, file); | 640 | free(file); |
| 641 | ret = IPHONE_E_SUCCESS; | ||
| 641 | } | 642 | } |
| 642 | return ret; | 643 | return ret; |
| 643 | } | 644 | } |
