transfer.c (finalize_transfer): Free internal streams.

* io/transfer.c (finalize_transfer): Free internal streams.
	* io/unix.c (mem_close): Free stream object.

From-SVN: r88709
This commit is contained in:
Paul Brook 2004-10-07 21:30:50 +00:00 committed by Paul Brook
parent add2402ef0
commit 5615e8cdce
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-10-07 Paul Brook <paul@codesourcery.com>
* io/transfer.c (finalize_transfer): Free internal streams.
* io/unix.c (mem_close): Free stream object.
2004-10-07 Paul Brook <paul@codesourcery.com>
* intrinsics/string_intrinsics.c (string_verify): Fix off by one

View File

@ -1349,7 +1349,8 @@ next_record (int done)
/* Finalize the current data transfer. For a nonadvancing transfer,
this means advancing to the next record. */
this means advancing to the next record. For internal units close the
steam associated with the unit. */
static void
finalize_transfer (void)
@ -1392,6 +1393,9 @@ finalize_transfer (void)
}
sfree (current_unit->s);
if (is_internal_unit ())
sclose (current_unit->s);
}

View File

@ -811,6 +811,7 @@ mem_truncate (unix_stream * s)
static try
mem_close (unix_stream * s)
{
free_mem (s);
return SUCCESS;
}