mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
Fix more leaks
- get_parent_pid: free buffer returned from read_line after use. - workspace_for_pid: ensure free_pid_workspace is called when pid_workspaces are removed from config->pid_workspaces. - cmd_split: return the cmd_results from _do_split, so that the parent function may free it.
This commit is contained in:
parent
4a76d06f33
commit
15f9c89e84
3 changed files with 6 additions and 5 deletions
|
|
@ -96,6 +96,7 @@ pid_t get_parent_pid(pid_t child) {
|
|||
parent = strtol(token, NULL, 10);
|
||||
}
|
||||
|
||||
free(buffer);
|
||||
fclose(stat);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue