Fix a memory leak in the built-in GnuTLS support.
authorChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 06:07:09 +0000 (14:07 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 06:07:09 +0000 (14:07 +0800)
commit9c6c6f495b8469ca5e105f5ddb02a69d1303a106
tree0858a59fdd543e7dca46fb6a3ab495c21c417f07
parent15de15c66d96905aa21f1781861067eebd68b24b
Fix a memory leak in the built-in GnuTLS support.
* src/gnutls.c (emacs_gnutls_deinit): New function.  Deallocate
credentials structures as well as calling gnutls_deinit.
(Fgnutls_deinit, Fgnutls_boot): Use it.

* src/process.c (make_process): Initialize GnuTLS credentials to NULL.
(deactivate_process): Call emacs_gnutls_deinit.
src/ChangeLog
src/gnutls.c
src/gnutls.h
src/process.c