projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd227b6
)
Added missed free for the result of realpath.
author
Daniel Carl
<danielcarl@gmx.de>
Thu, 4 Apr 2013 15:14:00 +0000
(17:14 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Thu, 4 Apr 2013 15:14:00 +0000
(17:14 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
e43ba57
..
221cd48
100644
(file)
--- 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;