[glib] gnetworkaddress: Fix minor memory leak



commit 8e74fbf300a95e1e154ef10c132e6a4ec6aaeda1
Author: Philip Withnall <withnall endlessm com>
Date:   Sun Feb 4 17:33:16 2018 +0100

    gnetworkaddress: Fix minor memory leak
    
    From commit 99b792fac047b2f495d83ca0a1c1a481ed838251.
    
    Spotted by Coverity; CID 1385719.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/gnetworkaddress.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gnetworkaddress.c b/gio/gnetworkaddress.c
index be68317..4fa6412 100644
--- a/gio/gnetworkaddress.c
+++ b/gio/gnetworkaddress.c
@@ -702,6 +702,8 @@ _g_uri_parse_authority (const char  *uri,
        *port = (guint16) tmp;
     }
 
+  g_free (ascii_uri);
+
   return TRUE;
 
 error:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]