pam_faillock: free handle in test

This commit is contained in:
Christian Göttsche 2023-08-05 18:08:16 +02:00
parent 4e8af9027d
commit b2bc6a660a

View File

@ -82,6 +82,7 @@ main(void)
ASSERT_NE(NULL, pamh);
ASSERT_EQ(PAM_PERM_DENIED, pam_authenticate(pamh, 0));
ASSERT_EQ(PAM_PERM_DENIED, pam_authenticate(pamh, 0));
ASSERT_EQ(PAM_SUCCESS, pam_end(pamh, 0));
pamh = NULL;
ASSERT_EQ(0, unlink(service_file));