Commit 92fc9c30 authored by Marius Wachtler's avatar Marius Wachtler Committed by GitHub

Merge pull request #1343 from undingen/fix_leak_checker

Fix leak check after path changes
parents 75d73197 e3790206
......@@ -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