diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-02-04 13:48:25 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-02-04 13:48:25 +0100 |
commit | c2aa5c0b9a642170f6ff46075a59ce0f3f6567b6 (patch) | |
tree | cd289f74dfc0f19f6b7f9624999e39b6cf809556 /pam | |
parent | f745c49112d1638967070cf52d1c1a7bc85ce5d1 (diff) |
pam: Fix possible memory leak
If we exited early from the loop, we need to make sure to free() this
struct member.
Diffstat (limited to 'pam')
-rw-r--r-- | pam/pam_fprintd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c index 1f862cf..a0f5170 100644 --- a/pam/pam_fprintd.c +++ b/pam/pam_fprintd.c @@ -442,6 +442,8 @@ do_verify (pam_handle_t *pamh, sd_bus_slot_unref (verify_status_slot); sd_bus_slot_unref (verify_finger_selected_slot); + if (data->result) + free (data->result); free (data->driver); free (data); |