fix scm_tmpfile leak
authorAndy Wingo <wingo@pobox.com>
Wed, 17 Aug 2011 21:54:58 +0000 (23:54 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 17 Aug 2011 21:54:58 +0000 (23:54 +0200)
commit81bda963e969db7e2ecc878982286daa5b0aacff
treec665fcb4c6c501e5d53400b7d1df98e6e3df9a1f
parentb8f191964e519807bb6d05ea0f2296a46d2144bd
fix scm_tmpfile leak

* libguile/posix.c (scm_tmpfile): Fix to actually close the new
  tmpfile, causing its deletion, while keeping an fd to the file open.
  Fixes a leak both in memory and disk space on POSIX systems; MINGW
  systems will leak however.  A FIXME for later.
libguile/posix.c