Skip to content

Commit a68fdd1

Browse files
committed
Proper reference counting in python tests
1 parent 47aae06 commit a68fdd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ TEST_CASE( "Python Conversions", "[python]") {
3333
auto raw = PyUnicode_FromString("\xEF\xBF\xBD");
3434
REQUIRE(raw);
3535
CHECK(sys_string(raw) == sys_string(u""));
36+
Py_DECREF(raw);
3637
}
3738

3839
#endif

0 commit comments

Comments
 (0)