Skip to content
Browse files

BUG: fixing reference leak from the numpy refactor @ 4c21144

  • Loading branch information...
1 parent 7471adc commit 8e606173b3436c641adc07b826866542e7ce5ff7 @cfarrow cfarrow committed with charris Aug 4, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 numpy/core/src/multiarray/ctors.c
View
1 numpy/core/src/multiarray/ctors.c
@@ -3001,6 +3001,7 @@ PyArray_Zeros(int nd, npy_intp *dims, PyArray_Descr *type, int is_f_order)
return NULL;
}
if (_zerofill(ret) < 0) {
+ Py_DECREF(ret);
return NULL;
}
return (PyObject *)ret;

0 comments on commit 8e60617

Please sign in to comment.
Something went wrong with that request. Please try again.