More gnutls memory fixes.
authorChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 08:07:28 +0000 (16:07 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 08:07:28 +0000 (16:07 +0800)
commit435c1d6793ce358f4d2c77c9e9c1ad81fd754651
treec4a4bf709d74290d4c59f8b1a152190c8d89d9c6
parent416a2c45b3068568e47076ed089db25830117ea8
More gnutls memory fixes.

* 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.
src/ChangeLog
src/gnutls.c
src/gnutls.h
src/process.c