• Chong Yidong's avatar
    More gnutls memory fixes. · 435c1d67
    Chong Yidong authored
    * src/gnutls.c (emacs_gnutls_deinit): Deinit the gnutls_state if it is
    non-NULL, regardless of GNUTLS_INITSTAGE.
    (Fgnutls_boot): Cleanups.  Call emacs_gnutls_deinit if we signal
    an error.  Set process slots as soon as we allocate them.
    * src/gnutls.h (GNUTLS_LOG, GNUTLS_LOG2): Fix macros.
    * src/process.c (make_process): Set gnutls_state to NULL.
gnutls.c 35.9 KB