summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Petr Uzel2010-04-11 10:52:17 +0200
committerGravatar Martin Szulecki2010-04-11 15:10:00 +0200
commitec9bf61546236bb93476f484e22e55d951d453f1 (patch)
tree6cd14be58280c386bb309b1643b7e338e0fc5747
parent03b35d180586f28666f66510ac05e09a37f1f872 (diff)
downloadlibimobiledevice-ec9bf61546236bb93476f484e22e55d951d453f1.tar.gz
libimobiledevice-ec9bf61546236bb93476f484e22e55d951d453f1.tar.bz2
plug memory leak in lockdownd_gen_pair_cert()
-rw-r--r--src/lockdown.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 8127456..41fe1a6 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -1169,6 +1169,9 @@ lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datu
g_free(pem_root_cert.data);
g_free(pem_host_cert.data);
+
+ if (dev_pem.data)
+ gnutls_free(dev_pem.data);
}
}
}