Skip to content

Wrong usage of heap_caps_malloc in frequencyio? #10394

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy