Mercurial > trustbridge
diff cinst/nss-secitemlist.c @ 524:a097dd86cb4d
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 29 Apr 2014 15:26:43 +0200 |
parents | 48d7b956bd98 |
children | f89b41fa7048 |
line wrap: on
line diff
--- a/cinst/nss-secitemlist.c Tue Apr 29 15:26:02 2014 +0200 +++ b/cinst/nss-secitemlist.c Tue Apr 29 15:26:43 2014 +0200 @@ -20,6 +20,20 @@ *list = newlelt; } +void +seciteml_free (seciteml_t **list) +{ + seciteml_t *oldlelt; + + while (*list != NULL) + { + oldlelt = *list; + *list = oldlelt->next; + free(oldlelt->item); + free(oldlelt); + } +} + SECItem *seciteml_pop (seciteml_t **list) { seciteml_t *oldlelt;