Use GC-managed memory for port->encoding.
authorLudovic Courtès <ludo@gnu.org>
Wed, 14 Oct 2009 22:56:56 +0000 (00:56 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 14 Oct 2009 22:56:56 +0000 (00:56 +0200)
commit682d78d05e567a46b1c443c5f852c575ab529f5a
treeaf74861b8e7a184a5173c9de42c8e137c1490fff
parentc72b0ca3b076837a8a2b444fa7ab6d8c16b0b0c4
Use GC-managed memory for port->encoding.

* libguile/ports.c (scm_new_port_table_entry): Use `scm_gc_strdup ()'
  instead of `strdup ()' for `entry->encoding'.
  (scm_i_set_port_encoding_x): Likewise.  Remove free(3) call.
  (scm_i_remove_port): Don't explicitly free memory.
  (scm_unget_byte): Remove outdated and misleading comment.
libguile/ports.c