Skip to content

Wrong usage of heap_caps_malloc in frequencyio? #10394

Open
@Sola85

Description

@Sola85

CircuitPython version and board name

espressif

Code/REPL

None

Behavior

None

Description

self->internal_data = heap_caps_malloc(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL, sizeof(_internal_data_t));

but heap_caps_malloc has signature void *heap_caps_malloc(size_t size, uint32_t caps) reference.

I havn't checked whether there is actually something broken and I havn't used frequencyio yet, I just noticed it while searching for uses of heap_caps_malloc in circuitpython source while working on an upcoming PR.

But maybe this is the reason for #8653?

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugespressifapplies to multiple Espressif chips

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions