|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #61813] memory management bug when calling MEX that returns an output |
Date: | Thu, 13 Jan 2022 11:11:16 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55 |
Follow-up Comment #5, bug #61813 (project octave): I don't "like" that we use `delete []` on memory that was `malloc`-ed. But some basic tests in the other report indicated that it is likely harmless (at least on GNU/Linux and Windows). Tbh, I'm not completely convinced that it is always save though... CC'ing jwe: Should we revert to the less efficient memory transfer for all types? That is only if configured with `--disable-std-pmr-polymorphic-allocator` (the default). I can see how the current implementation makes bug tracking awkward... _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61813> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |