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

#include "pammodutil.h"

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