Sujet : Re: valgrind leak I can't find
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 23. Aug 2024, 14:39:36
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vaa3ep$u5v9$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 8/22/24 13:44, Mark Summerfield wrote:
Thank you to all who replied.
>
TL;DR The problem turned out to be a double-free because I had two owning
collections with the same strings. I've now made VecStr and SetStr able to
be owning or nonowning and this valgrind leak has gone.
>
- I don't want to post the code since it is just for me relearning C.
If you're unwilling to post the code, don't bother asking questions
about why it's failing. The code is needed to answer the questions, so
you're just wasting other people's time if you don't provide it.