summaryrefslogtreecommitdiffstats
path: root/libpam/pam_modutil_cleanup.c
blob: 8224ce6777577ca5fd73994e7e423cc689743196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * $Id$
 *
 * This function provides a common pam_set_data() friendly version of free().
 */

#include "pam_modutil_private.h"

#include <stdlib.h>

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