mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Remove remaining xfree calls from the portable version.
This commit is contained in:
@ -49,7 +49,7 @@ osdep_get_name(int fd, char *tty)
|
||||
|
||||
xasprintf(&path, "/proc/%u/psinfo", (u_int) pgrp);
|
||||
f = open(path, O_RDONLY);
|
||||
xfree(path);
|
||||
free(path);
|
||||
if (f < 0)
|
||||
return (NULL);
|
||||
|
||||
@ -73,7 +73,7 @@ osdep_get_cwd(pid_t pid)
|
||||
|
||||
xasprintf(&path, "/proc/%u/path/cwd", (u_int) pid);
|
||||
n = readlink(path, target, MAXPATHLEN);
|
||||
xfree(path);
|
||||
free(path);
|
||||
if (n > 0) {
|
||||
target[n] = '\0';
|
||||
return (target);
|
||||
|
Reference in New Issue
Block a user