summaryrefslogtreecommitdiff
path: root/modules/pammodutil/modutil_cleanup.c
blob: 7460da1477c5e8b2c22189e30b6af72961cb4403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * $Id$
 *
 * This function provides a common pam_set_data() friendly version of free().
 */

#include "pammodutil.h"

void
_pammodutil_cleanup (pam_handle_t *pamh UNUSED, void *data,
		     int error_status UNUSED)
{
    if (data) {
	/* junk it */
	(void) free(data);
    }
}