From: Daniel Carl Date: Thu, 4 Apr 2013 15:14:00 +0000 (+0200) Subject: Added missed free for the result of realpath. X-Git-Url: https://git.owens.tech/assets/static/git-favicon.png/assets/static/git-favicon.png/git?a=commitdiff_plain;h=a40cf5603c9459918cf2e6557b89364d4f37ab51;p=vimb.git Added missed free for the result of realpath. --- 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;