Sujet : Re: valgrind leak I can't find
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.cDate : 22. Aug 2024, 13:54:07
Autres entêtes
Organisation : Stefan Ram
Message-ID : <heap-20240822134931@ram.dialup.fu-berlin.de>
References : 1
Mark Summerfield <
mark@qtrac.eu> wrote or quoted:
vec->_values[index] = value;
You're stashing a doppelganger of a pointer here. If this pointer
was yanked from the heap, it'll gum up the works down the road.
assert_alloc(p);
Pulling the plug on a program just 'cause it bites the dust on
a request might not always be the ticket.