sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 79387368872db7f0b24ffd7c6f40ded1b5d735a5
parent dba1195b4452dd7497d780b5d8c0b43f361f5aab
Author: Kevin Hamacher <kevin.hamacher@rub.de>
Date:   Mon, 25 Apr 2016 20:19:54 +0200

swaylock: fix double free

Diffstat:
Mswaylock/main.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/swaylock/main.c b/swaylock/main.c @@ -90,7 +90,7 @@ int function_conversation(int num_msg, const struct pam_message **msg, } /** - * password will be zeroed out. + * Note: PAM will free() 'password' during the process */ bool verify_password() { struct passwd *passwd = getpwuid(getuid()); @@ -131,7 +131,6 @@ void notify_key(enum wl_keyboard_key_state state, xkb_keysym_t sym, uint32_t cod redraw_screen = 1; password_size = 1024; - free(password); password = malloc(password_size); password[0] = '\0'; break;