Memory leak, from David CARLIER.

This commit is contained in:
nicm 2017-04-16 20:33:46 +00:00
parent 54bcaab70e
commit d566c780e5

2
tmux.c
View File

@ -141,6 +141,8 @@ make_label(const char *label)
if (realpath(base, resolved) == NULL)
strlcpy(resolved, base, sizeof resolved);
xasprintf(&path, "%s/%s", resolved, label);
free(base);
return (path);
fail: