#4296 new defect

hexdump-parse.c: Resource leak error spotted by Coverity

Reported by: Ryan Long Owned by:
Priority: normal Milestone: Indefinite
Component: lib Version: 6
Severity: normal Keywords:
Cc: Blocked By:


CID 26032: Resource leak in rtems_shell_hexdump_rewrite().

457#ifdef DEBUG
458        for (fu = fs->nextfu; fu; fu = fu->nextfu) {
459                (void)printf("fmt:");
460                for (pr = fu->nextpr; pr; pr = pr->nextpr)
461                        (void)printf(" {%s}", pr->fmt);
462                (void)printf("\n");
463        }
   CID 26032 (#2 of 2): Resource leak (RESOURCE_LEAK)57. leaked_storage: Variable nextpr going out of scope leaks the storage it points to.

Change History (1)

comment:1 Changed on 12/16/21 at 17:13:06 by Ryan Long

Milestone: 6.1Indefinite

I don't see that anything was done to fix this issue, but I also don't see it in the list of Resource leak issues in Coverity.

Note: See TracTickets for help on using tickets.