diff options
| -rw-r--r-- | src/lockdown.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index bc04fe9..8127456 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -1186,6 +1186,16 @@ lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datu | |||
| 1186 | break; | 1186 | break; |
| 1187 | } | 1187 | } |
| 1188 | } | 1188 | } |
| 1189 | |||
| 1190 | if (essentially_null.data) | ||
| 1191 | free(essentially_null.data); | ||
| 1192 | gnutls_x509_crt_deinit(dev_cert); | ||
| 1193 | gnutls_x509_crt_deinit(root_cert); | ||
| 1194 | gnutls_x509_crt_deinit(host_cert); | ||
| 1195 | gnutls_x509_privkey_deinit(fake_privkey); | ||
| 1196 | gnutls_x509_privkey_deinit(root_privkey); | ||
| 1197 | gnutls_x509_privkey_deinit(host_privkey); | ||
| 1198 | |||
| 1189 | } | 1199 | } |
| 1190 | 1200 | ||
| 1191 | gnutls_free(modulus.data); | 1201 | gnutls_free(modulus.data); |
