question regarding mismatching free/delete
Thomas Wollenzin <[email protected]> Mon, 17 Jun 2024 08:45:07 +0000
| Newsgroups | gmane.comp.debugging.valgrind |
|---|---|
| Message-ID | <PAVPR10MB7465E81913D77C1B357C479189CD2@PAVPR10MB7465.EURPRD10.PROD.OUTLOOK.COM> |
Hi, I have a questing regarding Valgrind report 'Mismatched free() / delete / delete []'. I understand that Valgrind is redirecting calls to new/delete and so on to its own. On the allocation side I see: operator new(unsigned long) (vg_replace_malloc.c:487) on the deallocation side free (vg_replace_malloc.c:989) Our new/delete operators are overloaded and call effectively malloc/free at some point. Could it be that Valgrind can get confused and not resolve the overloaded operators correctly? Thanks, Thomas _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users