[evolution-data-server] Fix a possible memory leak in sasl_ntlm_try_empty_password_sync()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix a possible memory leak in sasl_ntlm_try_empty_password_sync()
- Date: Tue, 20 Aug 2013 04:51:56 +0000 (UTC)
commit d17e6e91a5416d2365bb8dfab291256874a2063b
Author: Milan Crha <mcrha redhat com>
Date: Tue Aug 20 06:51:26 2013 +0200
Fix a possible memory leak in sasl_ntlm_try_empty_password_sync()
camel/camel-sasl-ntlm.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-sasl-ntlm.c b/camel/camel-sasl-ntlm.c
index eedb79d..6c56b51 100644
--- a/camel/camel-sasl-ntlm.c
+++ b/camel/camel-sasl-ntlm.c
@@ -687,7 +687,7 @@ sasl_ntlm_try_empty_password_sync (CamelSasl *sasl,
GError **error)
{
#ifndef G_OS_WIN32
- CamelStream *stream = camel_stream_process_new ();
+ CamelStream *stream;
CamelNetworkSettings *network_settings;
CamelSettings *settings;
CamelService *service;
@@ -734,6 +734,8 @@ sasl_ntlm_try_empty_password_sync (CamelSasl *sasl,
NTLM_AUTH_HELPER, user);
}
+ stream = camel_stream_process_new ();
+
ret = camel_stream_process_connect (
CAMEL_STREAM_PROCESS (stream), command, NULL, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]