diff options
author | Martin Szulecki | 2010-04-11 15:48:41 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-04-11 15:55:05 +0200 |
commit | 79a20cddfb75ec6653c22a19cee21f9d02eb8eb8 (patch) | |
tree | a7573435ae01dfd2d4829e726a5017cb89dfd758 | |
parent | 4d9e02f70640723815e9b1b0c72edc80da78b1aa (diff) | |
download | libimobiledevice-79a20cddfb75ec6653c22a19cee21f9d02eb8eb8.tar.gz libimobiledevice-79a20cddfb75ec6653c22a19cee21f9d02eb8eb8.tar.bz2 |
Fix memory leak and actually set the label supplied for new lockdown clients
-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; |