Moritz Klammler 58687aa5e6 Avoid memory leak when constructor of user-defined type throws exception.
The added check `ctorleak.cpp` demonstrates how the leak can be reproduced.
The test appears to pass but it is leaking the storage of the (not created)
matrix.  I don't know how to make this test fail in the existing test suite but
you can run it through Valgrind (or another debugger) to verify the leak.

    $ ./check.sh ctorleak && valgrind --leak-check=full ./test/ctorleak

This patch fixes this leak by adding some try-catch-delete-rethrow blocks to
`Eigen/src/Core/util/Memory.h`.
2014-07-06 06:58:13 +02:00
..
2014-07-09 17:21:16 +02:00
2014-04-12 20:24:05 -07:00
2014-01-24 12:51:33 +01:00
2013-08-12 07:39:24 +02:00
2012-11-06 15:25:50 +01:00
2013-01-21 15:43:15 +01:00
2013-08-12 07:39:24 +02:00
2014-04-25 14:05:54 +02:00
2014-07-09 13:06:06 +02:00
2013-02-25 01:12:07 +01:00