# HG changeset patch # User Jussi Judin # Date 1198047465 21600 # Node ID 97efe5d315945b915ae2a4e61880ac67dcb5194e # Parent e1ecacef378996e23e644402ca9719ccdad36fe5 Fix memory leak in vfs_is_remote() (Bugzilla #32) diff -r e1ecacef3789 -r 97efe5d31594 src/audacious/vfs.c --- 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;