8000 Pull request #66: Fix non-dupping return of local handle into out var… · hpyproject/numpy-hpy@098ba05 · GitHub
[go: up one dir, main page]

Skip to content

Commit 098ba05

Browse files
committed
Pull request numpy#66: Fix non-dupping return of local handle into out variable
Merge in ~STEPAN.SINDELAR_ORACLE.COM/numpy-hpy from tim/fix-out-variable-close to labs-hpy-port * commit '8c2017764d9a1e7f706a9015b62a890a4306b77a': fix non-dupping return of local handle into out variable
2 parents fde6a12 + 8c20177 commit 098ba05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/umath/dispatching.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ resolve_implementation_info(HPyContext *ctx,
506506
goto finish;
507507
}
508508

509-
*out_info = best_resolver_info;
509+
*out_info = HPy_Dup(ctx, best_resolver_info);
510510
res = 0;
511511
finish:
512512
HPy_Close(ctx, _loops);

0 commit comments

Comments
 (0)
0