octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clang static analysis


From: Markus Mützel
Subject: Re: clang static analysis
Date: Sat, 3 Oct 2020 00:28:11 +0200

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
 
The report indicates that constructs like the following are potential memory 
leaks:
  double lo = (lims.get ().matrix_value ())(0);

Is that true? Do the intermediate results need a scoped variable? 
It might be a false alarm. I don't know how such constructs are reference 
counted.

Markus





reply via email to

[Prev in Thread] Current Thread [Next in Thread]