Commit e3790206 authored by Marius Wachtler's avatar Marius Wachtler

Fix leak check after path changes

this check is not very robust :-(
parent 75d73197
......@@ -181,7 +181,7 @@ BoxedModule* importCExtension(BoxedString* full_name, const std::string& last_na
#ifdef Py_REF_DEBUG
// if we load a foreign C extension we can't check that _Py_RefTotal == 0
if (!llvm::StringRef(path).endswith("from_cpython/Lib/" + last_name + ".pyston.so"))
if (!llvm::StringRef(path).endswith("lib/python2.7/lib-dynload/" + last_name + ".pyston.so"))
imported_foreign_cextension = true;
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment