diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-14 11:25:07 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-14 11:25:07 +0200 |
commit | 42d36fbf3a06bb10e966abe1bcd288d335c6ad18 (patch) | |
tree | dcc2f1f8e1a2ddaac96be4997ee50129a27e0745 | |
parent | e1d21ca141706f730067e20958bbdd973672e019 (diff) | |
download | rsyslog-42d36fbf3a06bb10e966abe1bcd288d335c6ad18.tar.gz rsyslog-42d36fbf3a06bb10e966abe1bcd288d335c6ad18.tar.bz2 rsyslog-42d36fbf3a06bb10e966abe1bcd288d335c6ad18.zip |
bugfix: TLS-mode memory leak was not completely fixed with previous commit
-rw-r--r-- | runtime/nsd_gtls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c index d0fd0e0f..cc8f78d1 100644 --- a/runtime/nsd_gtls.c +++ b/runtime/nsd_gtls.c @@ -1099,6 +1099,7 @@ gtlsEndSess(nsd_gtls_t *pThis) } } gnutls_deinit(pThis->sess); + pThis->bHaveSess = 0; } RETiRet; } @@ -1152,8 +1153,8 @@ CODESTARTobjDestruct(nsd_gtls) gnutls_x509_crt_deinit(pThis->ourCert); if(pThis->bOurKeyIsInit) gnutls_x509_privkey_deinit(pThis->ourKey); -#warning need more checks if the new gnutls_deinit() breaks things during normal operations -// gnutls_deinit(pThis->sess); /* see ln 600 pThis->bInSess as something to check? */ + if(pThis->bHaveSess) + gnutls_deinit(pThis->sess); ENDobjDestruct(nsd_gtls) |