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 - Missing parse_arg_eq_done() before return #46

@shao-liancheng

Description

@shao-liancheng

if (rx_flag) {
PHYMOD_PRBS_DIRECTION_RX_SET(prbs_clear_args->flags);
}
if (tx_flag) {
PHYMOD_PRBS_DIRECTION_TX_SET(prbs_clear_args->flags);
}
return CMD_OK;

'parse_arg_eq_done(&pt)' should be called to free memory before function return.

Please refer the line#160 in previous function.

/* Now free allocated strings */
parse_arg_eq_done(&pt);
if (rx_flag) {
PHYMOD_PRBS_DIRECTION_RX_SET(prbs_set_args->flags);
}
if (tx_flag) {
PHYMOD_PRBS_DIRECTION_TX_SET(prbs_set_args->flags);
}
return CMD_OK;

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