diff options
author | Martin Szulecki | 2010-04-11 15:48:41 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-04-11 15:48:41 +0200 |
commit | 696d37a0db2aff091c07cf66e7fb59176cffb106 (patch) | |
tree | 8840ccf799d776f3b617f306269ca82c2b8833e2 /src | |
parent | a1c39313619ed238d622e22f6a014ea3087cd476 (diff) | |
download | libimobiledevice-696d37a0db2aff091c07cf66e7fb59176cffb106.tar.gz libimobiledevice-696d37a0db2aff091c07cf66e7fb59176cffb106.tar.bz2 |
Fix memory leak and actually set the label supplied for new lockdown clients
Diffstat (limited to 'src')
-rw-r--r-- | src/lockdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 41fe1a6..0623469 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -622,7 +622,7 @@ lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *cli client_loc->uuid = NULL; client_loc->label = NULL; if (label != NULL) - strdup(label); + client_loc->label = strdup(label); if (LOCKDOWN_E_SUCCESS == ret) { *client = client_loc; |