Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame^] | 1 | #include <unistd.h> |
2 | #include "selinux_internal.h" | ||||
3 | #include <stdlib.h> | ||||
4 | #include <errno.h> | ||||
5 | |||||
6 | void 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 | |||||
19 | hidden_def(freeconary) |