selinux/libselinux/src/freeconary.c
William Roberts 4246bb550d dso: drop hidden_proto and hidden_def
Signed-off-by: William Roberts <william.c.roberts@intel.com>
2020-03-05 13:07:34 -06:00

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);
}