https://bugs.kde.org/show_bug.cgi?id=455590

            Bug ID: 455590
           Summary: PVS-Studio C++ static code analyzer: two issues
           Product: kalgebra
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: aleix...@kde.org
          Reporter: nmariu...@gmail.com
  Target Milestone: ---

SUMMARY
/home/n/kde/src/education/kalgebra/src/varedit.h        28      warn    V690
The 'Analyzer' class implements a copy constructor, but lacks the copy
assignment operator. It is dangerous to use such a class.
/home/n/kde/src/education/kalgebra/src/kalgebra.cpp     375     err     V773
Visibility scope of the 'help' pointer was exited without releasing the memory.
A memory leak is possible.


STEPS TO REPRODUCE
1. Build kalgebra using kdesrc-build
2. Install PVS-Studio C++ Linux tgz. 30 days evaluation.
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION

cd ~/kde/build/education/kalgebra
export LD_LIBRARY_PATH=/home/n/kde/usr/lib:/home/n/kde/qt5/lib
export
CMAKE_MODULE_PATH=/home/n/kde/qt5/lib/cmake:/home/n/kde/usr/lib64/cmake:/home/n/kde/usr/lib/cmake
export CMAKE_PREFIX_PATH=/home/n/kde/qt5:/home/n/kde/usr
export
XDG_DATA_DIRS=/home/n/kde/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop
export
PATH=/home/n/kde/usr/bin:/home/n/kde/qt5/bin:/home/n/kde/src/kdesrc-build:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
export
PKG_CONFIG_PATH=/home/n/kde/usr/lib/pkgconfig:/home/n/kde/qt5/lib/pkgconfig

cmake -B . -S /home/n/kde/src/education/kalgebra -G Unix\ Makefiles
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_FLAGS:STRING=-pipe -DCMAKE_INSTALL_PREFIX=/home/n/kde/usr
-DCMAKE_PREFIX_PATH=/home/n/kde/qt5

pvs-studio-analyzer trace -- make -j 16
pvs-studio-analyzer analyze -o PVS-Studio.log -j 16
plog-converter -a GA:1,2 -d V1042 -t tasklist -o report.tasks PVS-Studio.log

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to