Commit 5f03f3e2 authored by Benjamin Peterson's avatar Benjamin Peterson

fix refleak

parent 23ee5ce6
......@@ -431,7 +431,9 @@ PyImport_GetMagicNumber(void)
"_RAW_MAGIC_NUMBER");
if (pyc_magic == NULL)
return -1;
return PyLong_AsLong(pyc_magic);
long res = PyLong_AsLong(pyc_magic);
Py_DECREF(pyc_magic);
return res;
}
......
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