mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-06 21:49:55 +00:00
4246bb550d
Signed-off-by: William Roberts <william.c.roberts@intel.com>
19 lines
221 B
C
19 lines
221 B
C
#include <unistd.h>
|
|
#include "selinux_internal.h"
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
|
|
void freeconary(char ** con)
|
|
{
|
|
char **ptr;
|
|
|
|
if (!con)
|
|
return;
|
|
|
|
for (ptr = con; *ptr; ptr++) {
|
|
free(*ptr);
|
|
}
|
|
free(con);
|
|
}
|
|
|