diff options
author | Petr Uzel | 2010-04-11 10:52:17 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-04-11 15:10:00 +0200 |
commit | ec9bf61546236bb93476f484e22e55d951d453f1 (patch) | |
tree | 6cd14be58280c386bb309b1643b7e338e0fc5747 | |
parent | 03b35d180586f28666f66510ac05e09a37f1f872 (diff) | |
download | libimobiledevice-ec9bf61546236bb93476f484e22e55d951d453f1.tar.gz libimobiledevice-ec9bf61546236bb93476f484e22e55d951d453f1.tar.bz2 |
plug memory leak in lockdownd_gen_pair_cert()
-rw-r--r-- | src/lockdown.c | 3 |
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); } } } |