Skip to content

Commit 28c491d

Browse files
Merge pull request #537 from neutrinoceros/bug/524
2 parents 618916b + 74b62cd commit 28c491d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bottleneck/src/nonreduce_axis_template.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ NRA(push, DTYPE0) {
345345
npy_intp index;
346346
npy_DTYPE0 ai, ai_last, n_float;
347347
PyObject *y = PyArray_Copy(a);
348+
if (y == NULL) return NULL;
348349
iter it;
349350
init_iter_one(&it, (PyArrayObject *)y, axis);
350351
if (LENGTH == 0 || NDIM == 0) {

0 commit comments

Comments
 (0)