diff options
| author | 2008-08-12 20:42:26 +0200 | |
|---|---|---|
| committer | 2008-08-21 18:47:04 +0200 | |
| commit | e5e5f21cae73230eaaa70273bd4400ff6b86641a (patch) | |
| tree | 729fe309175f6952c134e35b80e9ed79b646c135 /src/lockdown.c | |
| parent | 94eca7874e2c60cad84b344feaaa66418b1b47ef (diff) | |
| download | libimobiledevice-e5e5f21cae73230eaaa70273bd4400ff6b86641a.tar.gz libimobiledevice-e5e5f21cae73230eaaa70273bd4400ff6b86641a.tar.bz2 | |
fix some memory leaks
Diffstat (limited to 'src/lockdown.c')
| -rw-r--r-- | src/lockdown.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 3969868..f02e783 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -89,11 +89,12 @@ lockdownd_client *new_lockdownd_client(iPhone *phone) { | |||
| 89 | return control; | 89 | return control; |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | |||
| 92 | /** Closes the lockdownd client and does the necessary housekeeping. | 93 | /** Closes the lockdownd client and does the necessary housekeeping. |
| 93 | * | 94 | * |
| 94 | * @param control The lockdown client | 95 | * @param control The lockdown client |
| 95 | */ | 96 | */ |
| 96 | void lockdown_close(lockdownd_client *control) { | 97 | void lockdownd_close(lockdownd_client *control) { |
| 97 | if (!control) return; | 98 | if (!control) return; |
| 98 | if (control->connection) { | 99 | if (control->connection) { |
| 99 | mux_close_connection(control->connection); | 100 | mux_close_connection(control->connection); |
