mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
pam: Fix possible memory leak
If we exited early from the loop, we need to make sure to free() this struct member.
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user