fish: don't read freed memory
authorJim Meyering <meyering@redhat.com>
Wed, 12 Aug 2009 12:44:14 +0000 (14:44 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 12 Aug 2009 13:47:08 +0000 (15:47 +0200)
commitbf76b637d25fb70f0320caa63e264104112feaab
tree30efd5e5a17286ac364c68ffadb71b319c8ecd42
parentf1d23409f7297c8435c939b919fe5c2331fd484e
fish: don't read freed memory

* fish/rc.c (rc_remote): Close file handle only *after* xdr_destroy,
because that latter may flush its file handle (implicated via
xdrstdio_create).  FYI, this failure is triggered for me only when
MALLOC_PERTURB_ is set to nonzero < 256 in my environment.
fish/rc.c