diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-01 20:39:35 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-12-01 20:39:35 -0500 |
commit | 1a8a42f372e1bed146623e3357dbb12d8947e654 (patch) | |
tree | d48547dd6189be1c4f6a9f96d5e93149adb356cf /sway/security.c | |
parent | Implement policy lookups (diff) | |
download | sway-1a8a42f372e1bed146623e3357dbb12d8947e654.tar.gz sway-1a8a42f372e1bed146623e3357dbb12d8947e654.tar.zst sway-1a8a42f372e1bed146623e3357dbb12d8947e654.zip |
Memory leak
Diffstat (limited to 'sway/security.c')
-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) { | |||
15 | FEATURE_FULLSCREEN | FEATURE_KEYBOARD | FEATURE_MOUSE; | 15 | FEATURE_FULLSCREEN | FEATURE_KEYBOARD | FEATURE_MOUSE; |
16 | 16 | ||
17 | ssize_t len = readlink(path, link, sizeof(link)); | 17 | ssize_t len = readlink(path, link, sizeof(link)); |
18 | free(path); | ||
18 | if (len < 0) { | 19 | if (len < 0) { |
19 | sway_log(L_INFO, | 20 | sway_log(L_INFO, |
20 | "WARNING: unable to read %s for security check. Using default policy.", | 21 | "WARNING: unable to read %s for security check. Using default policy.", |