Re: clang static analysis
"John W. Eaton" <[email protected]> Tue, 13 Oct 2020 17:09:55 -0400
| Newsgroups | gmane.comp.gnu.octave.maintainers |
|---|---|
| Message-ID | <[email protected]> |
On 10/13/20 2:11 PM, Markus Mützel wrote: > Am 02. Oktober 2020 um 22:10 Uhr schrieb "Dmitri A. Sergatskov": >> I ran a clang-11 static analysis on 2219027f5bd4 (stable). >> Results are available at: >> https://drive.google.com/file/d/13Qz6svSS4yEwffpNFkd7X-_wQN7ykLky/view?usp=sharing > > I pushed a changeset here that hopefully avoids the detected "bad free": > https://hg.savannah.gnu.org/hgweb/octave/rev/02f0649f43d7 I suppose that change is OK, but I don't think the reference count for those nil_rep objects can ever be zero, so it seems to me that the warning could be safely ignored. jwe