[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: port initialization?
From: |
Han-Wen Nienhuys |
Subject: |
Re: port initialization? |
Date: |
Thu, 8 Aug 2002 21:37:05 +0200 |
address@hidden writes:
> > Why not
> > [...]
> > {
> > scm_t_port *newport = scm_add_to_port_table ();
> > SCM port = scm_cell (scm_tc16_port, newport);
> > newport->port = port;
> > ..
> > }
>
> This will leak newport when the call to scm_cell throws.
We could have a scm_add_to_port_table() that returns an SCM, that
would be less error prone
--
Han-Wen Nienhuys | address@hidden | http://www.cs.uu.nl/~hanwen
- Re: port initialization?, (continued)
- Re: port initialization?, Marius Vollmer, 2002/08/08
- Re: port initialization?, Han-Wen Nienhuys, 2002/08/08
- Re: port initialization?, Marius Vollmer, 2002/08/10
- Re: port initialization?, Han-Wen Nienhuys, 2002/08/16
- Re: port initialization?, Marius Vollmer, 2002/08/16
- Re: port initialization?, Lynn Winebarger, 2002/08/08
- Re: port initialization?, Han-Wen Nienhuys, 2002/08/09
- Re: port initialization?, Marius Vollmer, 2002/08/10
- Re: port initialization?, Lynn Winebarger, 2002/08/10
- Re: port initialization?, Marius Vollmer, 2002/08/11
Re: port initialization?,
Han-Wen Nienhuys <=