summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-04-11 15:48:41 +0200
committerGravatar Martin Szulecki2010-04-11 15:55:05 +0200
commit79a20cddfb75ec6653c22a19cee21f9d02eb8eb8 (patch)
treea7573435ae01dfd2d4829e726a5017cb89dfd758
parent4d9e02f70640723815e9b1b0c72edc80da78b1aa (diff)
downloadlibimobiledevice-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.c2
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;