Home
last modified time | relevance | path

Searched refs:strpool_ref (Results 1 – 1 of 1) sorted by relevance

/third_party/selinux/libsepol/cil/src/
Dcil_strpool.c69 struct cil_strpool_entry *strpool_ref = NULL; in cil_strpool_add() local
73 strpool_ref = hashtab_search(cil_strpool_tab, str); in cil_strpool_add()
74 if (strpool_ref == NULL) { in cil_strpool_add()
76 strpool_ref = cil_malloc(sizeof(*strpool_ref)); in cil_strpool_add()
77 strpool_ref->str = cil_strdup(str); in cil_strpool_add()
78 rc = hashtab_insert(cil_strpool_tab, strpool_ref->str, strpool_ref); in cil_strpool_add()
87 return strpool_ref->str; in cil_strpool_add()
92 struct cil_strpool_entry *strpool_ref = (struct cil_strpool_entry*)d; in cil_strpool_entry_destroy() local
93 free(strpool_ref->str); in cil_strpool_entry_destroy()
94 free(strpool_ref); in cil_strpool_entry_destroy()