Bryan Drewery d8a7885b36 Fix several memory leaks, and crashes, in iconvlist(3).
- Both curitem and curitem (via the names list) was always leaked.
- malloc(3) failures lead to some leaks.
- __bsd___iconv_get_list() failure lead to a crash since its error was not
  handles and __bsd___iconv_free_list() is not NULL-safe.

I have slightly refactored this to avoid extra malloc and free logic in cases
of malloc(3) failing.

There are still bad assumptions here that I did not deal with.  One of which is
that the data will always have a '/' so the strchr(3) will not return NULL.

Coverity CID:	1130055 1130054 1130053
2015-10-29 23:02:34 +00:00
..
2014-08-20 14:58:25 +00:00
2015-10-05 18:09:43 +00:00
2015-09-20 20:16:34 +00:00
2015-04-26 10:55:39 +00:00
2015-10-23 15:56:17 +00:00
2015-10-07 19:55:58 +00:00
2015-10-17 19:55:58 +00:00
2015-10-20 23:52:37 +00:00
2015-09-17 05:06:34 +00:00