Tailing Yuan
d6474ed7d2
fix: memory leak in cpp_function ( #3228 ) ( #3229 )
...
* fix: memory leak in cpp_function (#3228 )
* add a test case to check objects are deconstructed in cpp_function
* update the test case about cpp_function
* fix the test case about cpp_function: remove "noexcept"
* Actually calling func. CHECK(stat.alive() == 2); Manually verified that the new tests fails without the change in pybind11.h
* Moving new test to test_callbacks.cpp,py, with small enhancements.
* Removing new test from test_interpreter.cpp (after it was moved to test_callbacks.cpp,py). This restores test_interpreter.cpp to the current state on master.
* Using py::detail::silence_unused_warnings(py_func); to make the intent clear.
Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
2021-08-30 21:48:33 -04:00
..
2021-07-27 17:23:52 -04:00
2021-08-13 12:37:05 -04:00
2021-08-13 12:37:05 -04:00
2021-08-26 14:12:54 -07:00
2021-07-28 18:04:14 -07:00
2020-10-16 16:38:13 -04:00
2020-10-03 13:38:03 -04:00
2019-07-15 16:47:02 +02:00
2021-04-02 14:34:09 -04:00
2021-07-21 05:22:18 -07:00
2021-08-06 14:30:28 -04:00
2021-07-21 05:22:18 -07:00
2020-10-03 13:38:03 -04:00
2021-08-06 14:30:28 -04:00
2021-02-01 14:52:20 +01:00
2021-08-26 10:52:13 -07:00
2020-10-03 13:38:03 -04:00
2020-08-16 16:02:12 -04:00
2021-08-06 14:30:28 -04:00
2021-08-13 12:37:05 -04:00
2021-08-19 11:37:04 -07:00
2021-08-13 12:37:05 -04:00
2021-05-06 10:13:30 -04:00
2021-08-13 12:37:05 -04:00
2021-08-30 21:48:33 -04:00
2021-08-30 21:48:33 -04:00
2020-09-13 10:24:00 -04:00
2021-08-13 12:37:05 -04:00
2021-08-06 14:30:28 -04:00
2021-08-13 12:37:05 -04:00
2021-07-27 15:33:31 -07:00
2021-01-14 19:34:32 +01:00
2021-07-12 13:10:28 -07:00
2021-08-13 12:37:05 -04:00
2021-06-22 12:11:54 -04:00
2021-08-13 12:37:05 -04:00
2020-12-27 22:56:30 -05:00
2020-12-27 22:56:30 -05:00
2021-07-13 18:14:58 -07:00
2021-08-13 12:37:05 -04:00
2021-08-26 14:34:24 -07:00
2021-08-26 14:34:24 -07:00
2020-10-16 16:38:13 -04:00
2021-08-06 15:51:53 -04:00
2021-08-13 12:37:05 -04:00
2021-08-23 17:30:01 -07:00
2021-07-30 13:48:41 -04:00
2021-08-23 17:30:01 -07:00
2021-06-22 12:11:54 -04:00
2021-08-13 12:37:05 -04:00
2021-06-22 12:11:54 -04:00
2020-10-16 16:38:13 -04:00
2021-07-12 13:39:06 -07:00
2021-08-13 12:37:05 -04:00
2021-07-12 13:10:28 -07:00
2021-08-13 12:37:05 -04:00
2021-07-21 05:22:18 -07:00
2021-08-13 12:37:05 -04:00
2021-07-27 15:32:26 -07:00
2021-08-13 12:37:05 -04:00
2021-06-21 10:37:48 -04:00
2021-08-13 12:37:05 -04:00
2021-08-06 14:30:28 -04:00
2021-08-13 12:37:05 -04:00
2021-08-26 14:11:01 -07:00
2021-08-26 14:11:01 -07:00
2021-08-06 14:30:28 -04:00
2021-08-19 14:42:55 -04:00
2021-07-27 15:32:26 -07:00
2021-08-13 12:37:05 -04:00
2021-06-22 12:11:54 -04:00
2021-08-13 12:37:05 -04:00
2021-06-22 12:11:54 -04:00
2021-08-13 12:37:05 -04:00
2021-06-30 12:34:32 -07:00
2021-08-13 12:37:05 -04:00
2021-08-28 16:40:46 -07:00
2021-08-28 16:40:46 -07:00
2021-07-13 09:54:32 -04:00
2021-08-13 12:37:05 -04:00
2021-08-06 14:30:28 -04:00
2021-01-01 17:05:22 +01:00
2021-06-21 10:37:48 -04:00
2021-08-13 12:37:05 -04:00
2021-07-27 15:32:26 -07:00
2021-08-13 12:37:05 -04:00
2021-08-06 14:30:28 -04:00
2020-10-16 16:38:13 -04:00
2019-06-11 23:28:58 +02:00
2020-07-20 13:35:21 -04:00
2021-08-06 14:30:28 -04:00
2021-01-15 21:07:31 +01:00
2021-07-04 19:58:35 -04:00
2021-01-31 17:29:09 -05:00