pam_modutil_cleanup.c 310 B

12345678910111213141516171819
  1. /*
  2. * $Id$
  3. *
  4. * This function provides a common pam_set_data() friendly version of free().
  5. */
  6. #include "pam_modutil_private.h"
  7. #include <stdlib.h>
  8. void
  9. pam_modutil_cleanup (pam_handle_t *pamh UNUSED, void *data,
  10. int error_status UNUSED)
  11. {
  12. if (data) {
  13. /* junk it */
  14. (void) free(data);
  15. }
  16. }