提交 710c193a authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Plug leak of success.

上级 ee78a021
......@@ -1202,7 +1202,7 @@ second dimension
return support_code
def c_code_cache_version_apply(self, node):
version = [12] # the version corresponding to the c code in this Op
version = [13] # the version corresponding to the c code in this Op
# now we insert versions for the ops on which we depend...
scalar_node = Apply(
......@@ -1622,7 +1622,7 @@ class CAReduce(Op):
def c_code_cache_version_apply(self, node):
# the version corresponding to the c code in this Op
version = [7]
version = [8]
# now we insert versions for the ops on which we depend...
scalar_node = Apply(
......
......@@ -165,6 +165,8 @@ def make_alloc(loop_orders, dtype, sub, fortran='0'):
PyErr_Clear();
Py_XDECREF(%(olv)s);
%(olv)s = (PyArrayObject*)PyArray_EMPTY(%(nd)s, dims, %(type)s, 0);
} else {
Py_DECREF(success);
}
}
if (!%(olv)s) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论