summaryrefslogtreecommitdiffstats
path: root/src/lockdown.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-12 22:16:15 +0200
committerGravatar Jonathan Beck2008-08-21 18:58:17 +0200
commitcb4f79a28c6bcd4677c576e57bcde7c9957789d6 (patch)
tree150639957160ff1169d3082cb69613ef0e770aa2 /src/lockdown.c
parent0496edd88632b0bf83a78bbf5f665569f5b71e1a (diff)
downloadlibimobiledevice-cb4f79a28c6bcd4677c576e57bcde7c9957789d6.tar.gz
libimobiledevice-cb4f79a28c6bcd4677c576e57bcde7c9957789d6.tar.bz2
use gnutls function to free SSL session structure.
Diffstat (limited to 'src/lockdown.c')
-rw-r--r--src/lockdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index f02e783..76dbf7b 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -100,7 +100,7 @@ void lockdownd_close(lockdownd_client *control) {
mux_close_connection(control->connection);
}
- if (control->ssl_session) free(control->ssl_session);
+ if (control->ssl_session) gnutls_deinit(*control->ssl_session);
free(control);
}