Skip to content

[BUG] Compilation issues with ERPC_ALLOCATION_POLICY_STATIC #349

@Diagano

Description

@Diagano

Hi,

  1. Compilation errors on erpc_arbitrated_client_deinit()\erpc_client_deinit()\erpc_server_deinit(). All 3 have simular failure cause

image

  1. Generated file that has a structure with a string field. The read function fails compilatoin because of call to erpc_malloc(). That is since the include of "erpc_port.h" is under #if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC
    image
    image
    Which was generated from the following struct (This from the IDL) that is later used as input argument:
    image
    ...

To Reproduce

#define ERPC_ALLOCATION_POLICY (ERPC_ALLOCATION_POLICY_STATIC)

Is static allocation policy part of the testing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions