candera / hobocopy

An open source backup tool for Windows
http://candera.github.com/hobocopy/
MIT License
176 stars 52 forks source link

fixed from PVS-Studio #50

Open ip-gpu opened 6 years ago

ip-gpu commented 6 years ago

I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio. Warnings:

V611 The memory was allocated using 'new T[]' operator but was released using the 'delete' operator. Consider inspecting this code. It's probably better to use 'delete [] narrowMessage;'. Check lines: 'utilities.h:295', 'console.h:92'. console.h 92 V611 The memory was allocated using 'new T[]' operator but was released using the 'delete' operator. Consider inspecting this code. It's probably better to use 'delete [] normalizedPath;'. coptions.h 308