提交 34f951b1 authored 作者: Frederic's avatar Frederic

[CRASH] Fix typo crashing compilation introduced in 8890a7

Reported by chadawagner fix gh-2176
上级 d609674a
...@@ -558,7 +558,7 @@ if (%(name)s == NULL) { ...@@ -558,7 +558,7 @@ if (%(name)s == NULL) {
py_%(name)s = PyCapsule_New((void *)%(name)s, NULL, py_%(name)s = PyCapsule_New((void *)%(name)s, NULL,
_py3_destructor); _py3_destructor);
if (py_%(name)s != NULL) { if (py_%(name)s != NULL) {
if (PyCaspule_SetContext(py_%(name)s, (void *)%(freefunc)s) != 0) { if (PyCapsule_SetContext(py_%(name)s, (void *)%(freefunc)s) != 0) {
/* This won't trigger a call to freefunc since it could not be /* This won't trigger a call to freefunc since it could not be
set. The error case below will do it. */ set. The error case below will do it. */
Py_DECREF(py_%(name)s); Py_DECREF(py_%(name)s);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论