fix a couple leaks in ports.c. thanks valgrind!
authorAndy Wingo <wingo@pobox.com>
Fri, 18 Feb 2011 18:28:33 +0000 (19:28 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 18 Feb 2011 18:28:37 +0000 (19:28 +0100)
commit3e05fc04668f2e2c0f0aa989d7adf11bef49ec84
treeff5ed5ab6ea11052fa225c4f3fe8ad4b78ee0a33
parent6854c32480e95ca54e95da585e74002d8897573c
fix a couple leaks in ports.c.  thanks valgrind!

* libguile/ports.c (scm_i_remove_port): Fix a case in which ports
  explictly closed via close-port would leak their iconv_t data.
  (scm_set_port_encoding_x): scm_i_set_port_encoding_x strdups its
  argument, so we need to free the locale encoding of the incoming str.
libguile/ports.c