Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_strpool.c72 struct cil_strpool_entry *strpool_ref = NULL; in cil_strpool_add() local
76 strpool_ref = hashtab_search(cil_strpool_tab, (hashtab_key_t)str); in cil_strpool_add()
77 if (strpool_ref == NULL) { in cil_strpool_add()
78 strpool_ref = cil_malloc(sizeof(*strpool_ref)); in cil_strpool_add()
79 strpool_ref->str = cil_strdup(str); in cil_strpool_add()
80 int rc = hashtab_insert(cil_strpool_tab, (hashtab_key_t)strpool_ref->str, strpool_ref); in cil_strpool_add()
89 return strpool_ref->str; in cil_strpool_add()
94 struct cil_strpool_entry *strpool_ref = (struct cil_strpool_entry*)d; in cil_strpool_entry_destroy() local
95 free(strpool_ref->str); in cil_strpool_entry_destroy()
96 free(strpool_ref); in cil_strpool_entry_destroy()