From e9991314cf54da945f70bbebdf48708459878c81 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 22 Jan 2010 20:29:42 +0200 Subject: [PATCH] vfs/netutil.c: fix 'retval' memory leak in vfs_split_url when unbalanced '[' occurs Thanks to cppckeck: [./vfs/netutil.c:154]: (error) Memory leak: retval Signed-off-by: Sergei Trofimovich --- vfs/netutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vfs/netutil.c b/vfs/netutil.c index dcbd9759a..4bd7eaa3a 100644 --- a/vfs/netutil.c +++ b/vfs/netutil.c @@ -149,6 +149,7 @@ vfs_split_url (const char *path, char **host, char **user, int *port, colon++; } else { g_free (pcopy); + g_free (retval); *host = NULL; *port = 0; return NULL;