aboutsummaryrefslogtreecommitdiff
path: root/Linux-PAM/modules/pammodutil/modutil_cleanup.c
blob: 76662133f1c6a6b5022cf8ff9b1972e80ae7067c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * $Id: modutil_cleanup.c,v 1.1.1.1 2002/09/15 20:09:04 hartmans Exp $
 *
 * 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);
    }
}