Skip to content

Commit 98a468d

Browse files
committed
Fix reference counting error.
[SVN r37312]
1 parent ea4e6c0 commit 98a468d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/import.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object BOOST_PYTHON_DECL import(str name)
1717
{
1818
// should be 'char const *' but older python versions don't use 'const' yet.
1919
char *n = python::extract<char *>(name);
20-
python::handle<> module(python::borrowed(PyImport_ImportModule(n)));
20+
python::handle<> module(PyImport_ImportModule(n));
2121
return python::object(module);
2222
}
2323

0 commit comments

Comments
 (0)