Skip to content

Commit 329b7fe

Browse files
committed
BUG: Unitialized variable ret XDECREF'ed on fail
1 parent 2b60f5b commit 329b7fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/multiarray/cblasfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ cblas_innerproduct(int typenum, PyArrayObject *ap1, PyArrayObject *ap2)
685685
int j, l, lda, ldb;
686686
int nd;
687687
double prior1, prior2;
688-
PyArrayObject *ret;
688+
PyArrayObject *ret = NULL;
689689
npy_intp dimensions[NPY_MAXDIMS];
690690
PyTypeObject *subtype;
691691

0 commit comments

Comments
 (0)