diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-08-05 17:34:42 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2023-08-07 12:24:28 +0200 |
commit | 9facab2134a9e1142ab3c614e72eb25aaafd0dec (patch) | |
tree | a87bca46fa70de50c6df2b7308f2a1f6a393a478 /tests/tst-pam_start.c | |
parent | 1648734a69c31e9ce834da70144ac9a453296807 (diff) | |
download | pam-9facab2134a9e1142ab3c614e72eb25aaafd0dec.tar.gz pam-9facab2134a9e1142ab3c614e72eb25aaafd0dec.tar.bz2 pam-9facab2134a9e1142ab3c614e72eb25aaafd0dec.zip |
tests: free handles via pam_end()
Destroy the pam handles via pam_end() to release all associated
resources. This allows to run the test-suite with sanitizers and
validates the resource cleanup in pam_end() and callees.
Diffstat (limited to 'tests/tst-pam_start.c')
-rw-r--r-- | tests/tst-pam_start.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tst-pam_start.c b/tests/tst-pam_start.c index 8fa18f74..23af4fe8 100644 --- a/tests/tst-pam_start.c +++ b/tests/tst-pam_start.c @@ -66,6 +66,8 @@ main (void) return 1; } + pam_end (pamh, retval); + /* 2: check with NULL for service */ retval = pam_start (NULL, user, &conv, &pamh); if (retval == PAM_SUCCESS) @@ -84,6 +86,8 @@ main (void) return 1; } + pam_end (pamh, retval); + /* 4: check with NULL for conv */ retval = pam_start (service, user, NULL, &pamh); |