Chris PeBenito 473ea7
#include <unistd.h>
Chris PeBenito 473ea7
#include "selinux_internal.h"
Chris PeBenito 473ea7
#include <stdlib.h>
Chris PeBenito 473ea7
#include <errno.h>
Chris PeBenito 473ea7
Chris PeBenito 473ea7
void freeconary(security_context_t *con)
Chris PeBenito 473ea7
{
Chris PeBenito 473ea7
	char **ptr;
Chris PeBenito 473ea7
Chris PeBenito 473ea7
	if (!con)
Chris PeBenito 473ea7
		return;
Chris PeBenito 473ea7
Chris PeBenito 473ea7
	for (ptr = con; *ptr; ptr++) {
Chris PeBenito 473ea7
		free(*ptr);
Chris PeBenito 473ea7
	}
Chris PeBenito 473ea7
	free(con);
Chris PeBenito 473ea7
}
Chris PeBenito 473ea7
hidden_def(freeconary)