changeset 4101:97efe5d31594

Fix memory leak in vfs_is_remote() (Bugzilla #32)
author Jussi Judin <jjudin+audacious@iki.fi>
date Wed, 19 Dec 2007 00:57:45 -0600
parents e1ecacef3789
children 10e7c823462d 0d300e0b0001
files src/audacious/vfs.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/vfs.c	Wed Dec 19 00:55:07 2007 -0600
+++ b/src/audacious/vfs.c	Wed Dec 19 00:57:45 2007 -0600
@@ -448,9 +448,12 @@
     if (vtable == NULL)
     {
         g_warning("could not open '%s', no transport plugin available", decpath);
+        g_free(decpath);
         return FALSE;
     }
 
+    g_free(decpath);
+
     /* check if vtable->uri_id is file:// or not, for now. */
     if(!strncasecmp("file://", vtable->uri_id, strlen(vtable->uri_id)))
         return FALSE;