Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

COVERITY RESOURCE_LEAK - memory not release before return in schanfifo_mem_send( ) #49

@shao-liancheng

Description

@shao-liancheng

dma and msg buffer should be freed before return.

Please refer to

/* cmdBuff */
sal_dma_free(msg->cmd);
/* resp_alloc->resp */
(void) soc_schan_fifo_control(unit, CTL_FIFO_RESP_FREE, msg->resp);
/* msg */
sal_free(msg);

    sal_dma_free(msg->cmd);
    sal_free(msg);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions