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