From 1a8a42f372e1bed146623e3357dbb12d8947e654 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 1 Dec 2016 20:39:35 -0500 Subject: [PATCH] Memory leak --- sway/security.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/security.c b/sway/security.c index c72d54f63..00e5e8d78 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.",