google / butteraugli

butteraugli estimates the psychovisual difference between two images
Apache License 2.0
1.96k stars 137 forks source link

memory leak? #47

Closed ghost closed 5 years ago

ghost commented 6 years ago

butteraugli/butteraugli.cc:73: error: MEMORY_LEAK memory dynamically allocated by call to malloc() at line 61, column 47 is not reachable after line 73, column 1.

eustas commented 5 years ago

No. Analyser does not take into account 'aligned', that is a derivative of 'allocated'. This is a widely used technique. But, unfortunately, not all static analysers understand it.