stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid Zaripov <Far...@kyiv.vdiweb.com>
Subject RE: [PATCH] 23.list.iterators 23.list.cons tests with environment
Date Mon, 07 Aug 2006 13:14:22 GMT
 > -----Original Message-----
 > From: Farid Zaripov [mailto:FaridZ@kyiv.vdiweb.com]
 > Sent: Monday, August 07, 2006 12:33 PM
 > To: stdcxx-dev@incubator.apache.org
 > Subject: [PATCH] 23.list.iterators 23.list.cons tests with environment
 >
 >   It seems to be list ctors is not exception safe. The test
 > 23.list.cons asserts about leaks detected when exception is
 > thrown during call the ctor.
 >
 >   The list ctors calls _RWSTD_LIST_INSERT_RANGE macro which,
 > if an exception was catched, calls the _C_free_buffers()
 > before rethrow.
 > But _C_free_buffers() just frees the memory without calling
 > dtors of the successfully allocated elements. The list dtor
 > calls clear() before call of _C_free_buffers().

[...]

 >
 >   I'll write the simple test to situate this.

   The test file is attached.

Farid.


Mime
View raw message