aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/freeconary.c
blob: 835f5bc835c35c96c0dfc6a105bb853059770ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <unistd.h>
#include "selinux_internal.h"
#include <stdlib.h>
#include <errno.h>

void freeconary(security_context_t * con)
{
	char **ptr;

	if (!con)
		return;

	for (ptr = con; *ptr; ptr++) {
		free(*ptr);
	}
	free(con);
}

hidden_def(freeconary)