mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Memory leak, from David CARLIER.
This commit is contained in:
2
tmux.c
2
tmux.c
@ -141,6 +141,8 @@ make_label(const char *label)
|
|||||||
if (realpath(base, resolved) == NULL)
|
if (realpath(base, resolved) == NULL)
|
||||||
strlcpy(resolved, base, sizeof resolved);
|
strlcpy(resolved, base, sizeof resolved);
|
||||||
xasprintf(&path, "%s/%s", resolved, label);
|
xasprintf(&path, "%s/%s", resolved, label);
|
||||||
|
|
||||||
|
free(base);
|
||||||
return (path);
|
return (path);
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
Reference in New Issue
Block a user