Skip to content

Commit e54dfec

Browse files
committed
Pint: Update to m_malloc_with_finaliser.
1 parent 87404ee commit e54dfec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/modules/pint/pint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ mp_obj_t network_pint_make_new(const mp_obj_type_t *type, size_t n_args, size_t
8080
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
8181
mp_arg_parse_all_kw_array(n_args, n_kw, all_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
8282

83-
nic = m_new_obj_with_finaliser(_pint_obj_t);
83+
nic = (_pint_obj_t *)m_malloc_with_finaliser(sizeof(_pint_obj_t));
8484
nic->base.type = &mod_network_nic_type_pint;
8585

8686
mp_obj_t impl = args[ARG_impl].u_obj;

0 commit comments

Comments
 (0)