diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-12-01 20:39:35 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-12-01 20:39:35 -0500 |
| commit | 8821850db1a03e874128ae4d0efad01465990208 (patch) | |
| tree | d48547dd6189be1c4f6a9f96d5e93149adb356cf | |
| parent | 5bfb851b7163dd2bf4b1358f92e2b70b9d8a7b4c (diff) | |
Memory leak
| -rw-r--r-- | sway/security.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/security.c b/sway/security.c index c72d54f6..00e5e8d7 100644 --- a/sway/security.c +++ b/sway/security.c @@ -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.", |
