mirror of
https://github.com/NickHu/sway
synced 2024-11-16 19:49:56 +01:00
Memory leak
This commit is contained in:
parent
2675293200
commit
1a8a42f372
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ enum secure_feature get_feature_policy(pid_t pid) {
|
|||
FEATURE_FULLSCREEN | FEATURE_KEYBOARD | FEATURE_MOUSE;
|
||||
|
||||
ssize_t len = readlink(path, link, sizeof(link));
|
||||
free(path);
|
||||
if (len < 0) {
|
||||
sway_log(L_INFO,
|
||||
"WARNING: unable to read %s for security check. Using default policy.",
|
||||
|
|
Loading…
Reference in a new issue