[evolution-ews] ESoupAuthNegotiate: Fix two memory leaks
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] ESoupAuthNegotiate: Fix two memory leaks
- Date: Fri, 6 Aug 2021 06:56:08 +0000 (UTC)
commit a688f844f90a262ce43485fb86fdbcd4913856f8
Author: Milan Crha <mcrha redhat com>
Date: Fri Aug 6 08:55:44 2021 +0200
ESoupAuthNegotiate: Fix two memory leaks
src/EWS/common/e-soup-auth-negotiate.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/EWS/common/e-soup-auth-negotiate.c b/src/EWS/common/e-soup-auth-negotiate.c
index 4b8dc5c3..5948869a 100644
--- a/src/EWS/common/e-soup-auth-negotiate.c
+++ b/src/EWS/common/e-soup-auth-negotiate.c
@@ -205,10 +205,13 @@ e_soup_auth_negotiate_update (SoupAuth *auth, SoupMessage *msg,
chlg = NULL;
state->challenge = g_strdup (chlg);
state->challenge_available = TRUE;
+ g_strfreev (auths);
return TRUE;
}
}
+ g_strfreev (auths);
+
return FALSE;
}
@@ -285,6 +288,7 @@ e_soup_auth_negotiate_is_ready (SoupAuth *auth, SoupMessage *msg)
*/
soup_message_set_status_full (
msg, SOUP_STATUS_BAD_REQUEST, error->message);
+ g_clear_error (&error);
return FALSE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]