Mercurial > trustbridge
comparison cinst/nss-secitemlist.c @ 946:171124737c76
Free secitem.data and not just the list.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 26 Aug 2014 17:03:50 +0200 |
parents | f89b41fa7048 |
children |
comparison
equal
deleted
inserted
replaced
945:56ca8f2fd433 | 946:171124737c76 |
---|---|
27 | 27 |
28 while (*list != NULL) | 28 while (*list != NULL) |
29 { | 29 { |
30 oldlelt = *list; | 30 oldlelt = *list; |
31 *list = oldlelt->next; | 31 *list = oldlelt->next; |
32 if (oldlelt->item->data) | |
33 free(oldlelt->item->data); | |
32 free(oldlelt->item); | 34 free(oldlelt->item); |
33 free(oldlelt); | 35 free(oldlelt); |
34 } | 36 } |
35 } | 37 } |
36 | 38 |