Skip to content

Commit

Permalink
Use malloc instead of PyArray_malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 7, 2023
1 parent e0e3bf7 commit 978feef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erfa/ufunc.c.templ
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static void ufunc_loop_{{ func.pyname }}(
{#- /* if needed, allocate memory for contiguous eraLDBODY copies */ #}
{%- if func.user_dtype == 'dt_eraLDBODY' %}
if (copy_b) {
_b = PyArray_malloc(nb * sizeof(eraLDBODY));
_b = malloc(nb * sizeof(eraLDBODY));
if (_b == NULL) {
PyErr_NoMemory();
return;
Expand Down

0 comments on commit 978feef

Please sign in to comment.