[gmime] Fixed a mmemory leak in internet-address.c's decode_route()
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Fixed a mmemory leak in internet-address.c's decode_route()
- Date: Fri, 9 Oct 2015 01:37:26 +0000 (UTC)
commit 9d00f7bf216f49e95deac65a6121c1837535309f
Author: Jeffrey Stedfast <jeff xamarin com>
Date: Thu Oct 8 21:36:45 2015 -0400
Fixed a mmemory leak in internet-address.c's decode_route()
2015-10-08 Jeffrey Stedfast <fejj gnome org>
* gmime/internet-address.c (decode_route): Make sure to free the route
in error cases to avoid a memory leak.
Fixes bug #756270
ChangeLog | 7 +++++++
gmime/internet-address.c | 4 +++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a194b53..08fb917 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-10-08 Jeffrey Stedfast <fejj gnome org>
+
+ * gmime/internet-address.c (decode_route): Make sure to free the route
+ in error cases to avoid a memory leak.
+
+ Fixes bug #756270
+
2015-04-11 Jeffrey Stedfast <fejj gnome org>
* util/url-scanner.c (url_scanner_table_init): Treat all character
diff --git a/gmime/internet-address.c b/gmime/internet-address.c
index ab3b1be..a0af52a 100644
--- a/gmime/internet-address.c
+++ b/gmime/internet-address.c
@@ -1395,8 +1395,10 @@ decode_route (const char **in)
inptr++;
g_string_append_c (route, '@');
- if (!decode_domain (&inptr, route))
+ if (!decode_domain (&inptr, route)) {
+ g_string_free (route);
goto error;
+ }
decode_lwsp (&inptr);
if (*inptr == ',') {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]