blob: 835f5bc835c35c96c0dfc6a105bb853059770ab1 [file] [log] [blame]
Joshua Brindle13cd4c82008-08-19 15:30:36 -04001#include <unistd.h>
2#include "selinux_internal.h"
3#include <stdlib.h>
4#include <errno.h>
5
6void freeconary(security_context_t * con)
7{
8 char **ptr;
9
10 if (!con)
11 return;
12
13 for (ptr = con; *ptr; ptr++) {
14 free(*ptr);
15 }
16 free(con);
17}
18
19hidden_def(freeconary)