Skip to contentSkip to conversation

: (error) Common realloc mistake

U-Boot Wolfgang Denk 2 participants 2 messages Nov 6, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

cppcheck reports:

[scripts/docproc.c:398]: (error) Common realloc mistake: 'data' nulled but not freed upon failure
[scripts/docproc.c:422]: (error) Common realloc mistake: 'all_list' nulled but not freed upon failure

can you please have a look? Thanks!

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
F u cn rd ths u cnt spl wrth a dm!
#1 lore raw
Quoted 1 line · Wolfgang Denk

Hello,

Hello,

Quoted 8 lines

cppcheck reports:

[scripts/docproc.c:398]: (error) Common realloc mistake: 'data' nulled but not freed upon failure
[scripts/docproc.c:422]: (error) Common realloc mistake: 'all_list' nulled but not freed upon failure

can you please have a look? Thanks!

This looks unresolved in mainline Linux as well. I'm currently really pressed, so I cannot take an immediate action. I believe it would be worth reporting it to mainline Linux guys as well though.

Best regards,
Marek Vasut