From a40cf5603c9459918cf2e6557b89364d4f37ab51 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Thu, 4 Apr 2013 17:14:00 +0200
Subject: [PATCH] Added missed free for the result of realpath.

---
 src/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main.c b/src/main.c
index e43ba57..221cd48 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
 
-- 
2.20.1