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 <slyfox@inbox.ru>
This commit is contained in:
Sergei Trofimovich 2010-01-22 20:29:42 +02:00
parent c03ade3252
commit e9991314cf

View File

@ -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;