Mercurial > trustbridge
comparison cinst/nss-secitemlist.c @ 318:6ccaf25219fd
Fixed leak.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 04 Apr 2014 17:13:35 +0200 |
parents | 809eaca3898c |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
317:46fd11699646 | 318:6ccaf25219fd |
---|---|
21 if (*list != NULL) | 21 if (*list != NULL) |
22 { | 22 { |
23 oldlelt = *list; | 23 oldlelt = *list; |
24 item = oldlelt->item; | 24 item = oldlelt->item; |
25 *list = oldlelt->next; | 25 *list = oldlelt->next; |
26 free(oldlelt); | |
26 } | 27 } |
27 return(item); | 28 return(item); |
28 } | 29 } |