mirror of
https://github.com/boostorg/python.git
synced 2026-01-19 16:32:16 +00:00
Fix reference counting error.
[SVN r37312]
This commit is contained in:
@@ -17,7 +17,7 @@ object BOOST_PYTHON_DECL import(str name)
|
||||
{
|
||||
// should be 'char const *' but older python versions don't use 'const' yet.
|
||||
char *n = python::extract<char *>(name);
|
||||
python::handle<> module(python::borrowed(PyImport_ImportModule(n)));
|
||||
python::handle<> module(PyImport_ImportModule(n));
|
||||
return python::object(module);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user