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.c69 struct cil_strpool_entry *strpool_ref = NULL; in cil_strpool_add() local
71 strpool_ref = hashtab_search(cil_strpool_tab, (hashtab_key_t)str); in cil_strpool_add()
72 if (strpool_ref == NULL) { in cil_strpool_add()
73 strpool_ref = cil_malloc(sizeof(*strpool_ref)); in cil_strpool_add()
74 strpool_ref->str = cil_strdup(str); in cil_strpool_add()
75 int rc = hashtab_insert(cil_strpool_tab, (hashtab_key_t)strpool_ref->str, strpool_ref); in cil_strpool_add()
81 return strpool_ref->str; in cil_strpool_add()
86 struct cil_strpool_entry *strpool_ref = (struct cil_strpool_entry*)d; in cil_strpool_entry_destroy() local
87 free(strpool_ref->str); in cil_strpool_entry_destroy()
88 free(strpool_ref); in cil_strpool_entry_destroy()