summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-04-11 15:48:41 +0200
committerGravatar Martin Szulecki2010-04-11 15:48:41 +0200
commit696d37a0db2aff091c07cf66e7fb59176cffb106 (patch)
tree8840ccf799d776f3b617f306269ca82c2b8833e2 /src
parenta1c39313619ed238d622e22f6a014ea3087cd476 (diff)
downloadlibimobiledevice-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.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;