* FreeUserRoleEntryTable cleans up the user roles hash table and all nested role hash tables. */
| 1941 | * FreeUserRoleEntryTable cleans up the user roles hash table and all nested role hash tables. |
| 1942 | */ |
| 1943 | static void |
| 1944 | FreeUserRoleEntryTable(HTAB *userRolesTable) |
| 1945 | { |
| 1946 | if (userRolesTable != NULL) |
| 1947 | { |
| 1948 | HASH_SEQ_STATUS status; |
| 1949 | UserRoleHashEntry *userRoleEntry; |
| 1950 | hash_seq_init(&status, userRolesTable); |
| 1951 | while ((userRoleEntry = hash_seq_search(&status)) != NULL) |
| 1952 | { |
| 1953 | if (userRoleEntry->roles != NULL) |
| 1954 | { |
| 1955 | hash_destroy(userRoleEntry->roles); |
| 1956 | } |
| 1957 | } |
| 1958 | |
| 1959 | hash_destroy(userRolesTable); |
| 1960 | } |
| 1961 | } |
no outgoing calls
no test coverage detected