19 lines
255 B
C
19 lines
255 B
C
#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)
|