mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Memory leak in error path and unnecessary assignment, from clang.
This commit is contained in:
parent
871b83cbab
commit
5acee1c04e
@ -142,7 +142,6 @@ do_print:
|
||||
return (CMD_RETURN_ERROR);
|
||||
}
|
||||
msg = NULL;
|
||||
msglen = 0;
|
||||
|
||||
used = 0;
|
||||
while (used != pb->size) {
|
||||
|
@ -96,7 +96,7 @@ get_proc_name(int fd, char *tty)
|
||||
|
||||
retry:
|
||||
if (sysctl(mib, nitems(mib), NULL, &len, NULL, 0) == -1)
|
||||
return (NULL);
|
||||
goto error;
|
||||
len = (len * 5) / 4;
|
||||
|
||||
if ((newbuf = realloc(buf, len)) == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user