Added missed free for the result of realpath.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 4 Apr 2013 15:14:00 +0000 (17:14 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 4 Apr 2013 15:14:00 +0000 (17:14 +0200)
src/main.c

index e43ba57..221cd48 100644 (file)
@@ -142,6 +142,7 @@ gboolean vb_load_uri(const Arg *arg)
     if (stat(path, &st) == 0) {
         rp  = realpath(path, NULL);
         uri = g_strdup_printf("file://%s", rp);
+        free(rp);
     } else if (!strchr(path, '.')) {
         char *part  = NULL, *tmpl  = NULL, *query = NULL;