diff options
| author | 2013-10-08 23:18:18 +0200 | |
|---|---|---|
| committer | 2013-10-08 23:18:18 +0200 | |
| commit | 58e7581731f9baf42ebf80c1bde9780f6a4e1aab (patch) | |
| tree | d1be25cb6ddf934add604762791c3295dfd2acc2 /src | |
| parent | 386aa893056b3ca5caa20103389e7677b5f12b85 (diff) | |
| download | usbmuxd-58e7581731f9baf42ebf80c1bde9780f6a4e1aab.tar.gz usbmuxd-58e7581731f9baf42ebf80c1bde9780f6a4e1aab.tar.bz2 | |
preflight: plug small memory leak
Diffstat (limited to 'src')
| -rw-r--r-- | src/preflight.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preflight.c b/src/preflight.c index c40311c..b616e5f 100644 --- a/src/preflight.c +++ b/src/preflight.c | |||
| @@ -134,9 +134,11 @@ retry: | |||
| 134 | 134 | ||
| 135 | if (strcmp(type, "com.apple.mobile.lockdown") != 0) { | 135 | if (strcmp(type, "com.apple.mobile.lockdown") != 0) { |
| 136 | // make restore mode devices visible | 136 | // make restore mode devices visible |
| 137 | free(type); | ||
| 137 | client_device_add(info); | 138 | client_device_add(info); |
| 138 | goto leave; | 139 | goto leave; |
| 139 | } | 140 | } |
| 141 | free(type); | ||
| 140 | 142 | ||
| 141 | int is_device_paired = 0; | 143 | int is_device_paired = 0; |
| 142 | char *host_id = NULL; | 144 | char *host_id = NULL; |
