Re: Malloc/free in different threads
Saurabh T <[email protected]>
| Newsgroups | gmane.comp.debugging.valgrind |
|---|---|
| Message-ID | <MN2PR13MB39593A69D61B1877444972AFB1C30@MN2PR13MB3959.namprd13.prod.outlook.com> |
Sorry I forgot to say the false positives are for memory leaks ("definitely lost").
From: Saurabh T <[email protected]>
Sent: Friday, December 18, 2020 9:44 AM
To: Valgrind <[email protected]>
Subject: [Valgrind-users] Malloc/free in different threads
Hi, I believe I am seeing lots of false positives in valgrind if I call free() on a different thread from the one that called malloc() - the pointers are exchanged between threads safely in between. Is this a known issue, or am I doing something wrong? Thank you.