}
gnutls_free (data.data);
+ gnutls_x509_crt_deinit (crt);
+
gnutls_global_deinit ();
}
/*
* Copyright (C) 2007-2012 Free Software Foundation, Inc.
*
- * Author: Simon Josefsson
+ * Author: Nikos Mavrogiannopoulos, Simon Josefsson
*
* This file is part of GnuTLS.
*
_gnutls_mpi_release (&n3);
_gnutls_mpi_release (&n4);
+ gnutls_global_deinit ();
+
if (debug) success ("mpi ops ok\n");
}
}
}
+
+ gnutls_global_deinit ();
}
#else
void
else
fail ("child failed: %d\n", status);
}
+
+ gnutls_global_deinit ();
}
#else
void
}
else if (debug)
success ("MD5 OK\n");
+
+ gnutls_global_deinit ();
}
if (ret < 0)
error (EXIT_FAILURE, 0, "gnutls_global_init %d", ret);
- gnutls_global_init ();
gnutls_global_set_log_function (tls_log_func);
if (debug)
gnutls_global_set_log_level (4711);
gnutls_x509_crt_deinit (client);
gnutls_x509_crt_deinit (ca);
gnutls_global_deinit ();
-
}
if(debug)
success("success\n");
}
+
+ gnutls_global_deinit ();
}
#else
void